Skip to content

Instantly share code, notes, and snippets.

@nioe
Created June 19, 2014 13:50
Show Gist options
  • Save nioe/ce14ca004ef5d2dc5efe to your computer and use it in GitHub Desktop.
Save nioe/ce14ca004ef5d2dc5efe to your computer and use it in GitHub Desktop.
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