Created
June 19, 2014 13:50
-
-
Save nioe/ce14ca004ef5d2dc5efe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.enterprise.inject.Produces; | |
import javax.enterprise.inject.spi.InjectionPoint; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
public class LoggerProducer { | |
@Produces | |
public Logger produce(InjectionPoint injectionPoint) { | |
LoggerFactory.getLogger(injectionPoint.getMember().getDeclaringClass()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment