File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/main/java/net/kautler/command Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 2424import javax .enterprise .inject .spi .InjectionPoint ;
2525
2626/**
27- * A CDI producer that produces log4j loggers for the bean class of the injection point.
27+ * A CDI producer that produces log4j loggers for the declaring class of the injection point.
2828 */
2929@ ApplicationScoped
3030class LoggerProducer {
@@ -35,14 +35,14 @@ private LoggerProducer() {
3535 }
3636
3737 /**
38- * Returns a newly produced log4j logger for the bean class of the given injection point.
38+ * Returns a newly produced log4j logger for the declaring class of the injection point.
3939 *
4040 * @param injectionPoint the injection point for which to produce a log4j logger
41- * @return a newly produced log4j logger for the bean class of the given injection point
41+ * @return a newly produced log4j logger for the injection point
4242 */
4343 @ Produces
4444 @ Internal
4545 private Logger getLogger (InjectionPoint injectionPoint ) {
46- return LogManager .getLogger (injectionPoint .getBean ().getBeanClass ());
46+ return LogManager .getLogger (injectionPoint .getMember ().getDeclaringClass ());
4747 }
4848}
You can’t perform that action at this time.
0 commit comments