Skip to content

Commit

Permalink
fix: fix graph lab
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasnogueira committed Oct 5, 2023
1 parent e65012f commit 093311a
Show file tree
Hide file tree
Showing 19 changed files with 889 additions and 875 deletions.
11 changes: 10 additions & 1 deletion 01-jakarta-ee/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,16 @@
<version>3.24.2</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.20.0</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.20.0</version>
</dependency>
</dependencies>

<build>
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import jakarta.enterprise.inject.se.SeContainer;
import jakarta.enterprise.inject.se.SeContainerInitializer;

public class App4 {
public class AppJournalist {

public static void main(String[] args) {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
package expert.os.labs.persistence.persistence.cdi;

import expert.os.labs.persistence.persistence.cdi.producer.NumberLogger;
import jakarta.enterprise.inject.se.SeContainer;
import jakarta.enterprise.inject.se.SeContainerInitializer;

import java.math.BigDecimal;

public class App3 {
public class AppNumberLogger {

public static void main(String[] args) {

try (SeContainer container = SeContainerInitializer.newInstance().initialize()) {
BigDecimal value = container.select(BigDecimal.class).get();

NumberLogger logger = container.select(NumberLogger.class).get();
logger.log(value);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import jakarta.enterprise.inject.se.SeContainer;
import jakarta.enterprise.inject.se.SeContainerInitializer;

public class App5 {
public class AppWorker {

public static void main(String[] args) {
try (SeContainer container = SeContainerInitializer.newInstance().initialize()) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package expert.os.labs.persistence.persistence.cdi.producer;
package expert.os.labs.persistence.persistence.cdi;

import jakarta.inject.Inject;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ class LoggerProducer {
private static final Logger LOGGER = Logger.getLogger(LoggerProducer.class.getName());

@Produces
Logger getLog(InjectionPoint ip) {
String declaringClass = ip.getMember().getDeclaringClass().getName();
Logger getLog(InjectionPoint injectionPoint) {
String declaringClass = injectionPoint.getMember().getDeclaringClass().getName();
LOGGER.info("Creating instance log to " + declaringClass);
return Logger.getLogger(declaringClass);
}
Expand Down
Loading

0 comments on commit 093311a

Please sign in to comment.