org.springbyexample.util.log
Class AnnotationLoggerBeanPostProcessor
java.lang.Object
org.springbyexample.util.log.LoggerBeanPostProcessor
org.springbyexample.util.log.AnnotationLoggerBeanPostProcessor
- All Implemented Interfaces:
- BeanPostProcessor, Ordered
public class AnnotationLoggerBeanPostProcessor
- extends LoggerBeanPostProcessor
Injects loggers into new bean instances based on
fields marked with AutowiredLogger
annotation.
- Author:
- David Winterfeldt
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnnotationLoggerBeanPostProcessor
public AnnotationLoggerBeanPostProcessor()
getAutowiredAnnotationType
protected Class<? extends Annotation> getAutowiredAnnotationType()
- Gets autowired logger annotation type.
Defaults to
AutowiredLogger
.
setAutowiredAnnotationType
public void setAutowiredAnnotationType(Class<? extends Annotation> autowiredAnnotationType)
- Sets autowired logger annotation type.
Defaults to
AutowiredLogger
.
processLogger
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.
- Overrides:
processLogger
in class LoggerBeanPostProcessor
Copyright © 2008-2009 Spring by Example. All Rights Reserved.