Basic examples on cdi and beans validation
This commit is contained in:
13
general/LoggingProducer.java
Normal file
13
general/LoggingProducer.java
Normal file
@@ -0,0 +1,13 @@
|
||||
package general;
|
||||
|
||||
import javax.enterprise.inject.Produces;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
|
||||
public class LoggingProducer {
|
||||
|
||||
@Produces
|
||||
public Logger produceLogger() {
|
||||
return Logger.getLogger("xglogger");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user