public class AnnotationLoggerBeanPostProcessor extends LoggerBeanPostProcessor
Injects loggers into new bean instances based on
fields marked with AutowiredLogger
annotation.
hLoggerFactories, methodName
Constructor and Description |
---|
AnnotationLoggerBeanPostProcessor() |
Modifier and Type | Method and Description |
---|---|
protected Class<? extends Annotation> |
getAutowiredAnnotationType()
Gets autowired logger annotation type.
|
protected void |
processLogger(Object bean,
String methodName)
Processes a beans fields for injection if it has a
AutowiredLogger annotation. |
void |
setAutowiredAnnotationType(Class<? extends Annotation> autowiredAnnotationType)
Sets autowired logger annotation type.
|
getLogger, getOrder, injectMethod, postProcessAfterInitialization, postProcessBeforeInitialization, setLoggerFactoryMap, setMethodName
protected Class<? extends Annotation> getAutowiredAnnotationType()
AutowiredLogger
.public void setAutowiredAnnotationType(Class<? extends Annotation> autowiredAnnotationType)
AutowiredLogger
.protected void processLogger(Object bean, String methodName)
Processes a beans fields for injection if it has a AutowiredLogger
annotation.
Note: Method name isn't used by this implementation.
processLogger
in class LoggerBeanPostProcessor
Copyright © 2008-2013 Spring by Example. All Rights Reserved.