public class AnnotationLoggerBeanPostProcessor extends LoggerBeanPostProcessor
Injects loggers into new bean instances based on
fields marked with AutowiredLogger annotation.
hLoggerFactories, methodNameHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| 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, setMethodNameprotected 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 LoggerBeanPostProcessorCopyright © 2008-2015 Spring by Example. All Rights Reserved.