org.springbyexample.util.log
Class LoggerAwareBeanPostProcessor

java.lang.Object
  extended by org.springbyexample.util.log.LoggerBeanPostProcessor
      extended by org.springbyexample.util.log.LoggerAwareBeanPostProcessor
All Implemented Interfaces:
BeanPostProcessor, Ordered

public class LoggerAwareBeanPostProcessor
extends LoggerBeanPostProcessor

Injects loggers into new bean instances based on the different LoggerAware interfaces.

Author:
David Winterfeldt

Field Summary
protected static String LOGGER_AWARE_METHOD_NAME
           
 
Fields inherited from class org.springbyexample.util.log.LoggerBeanPostProcessor
hLoggerFactories, methodName
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
LoggerAwareBeanPostProcessor()
           
 
Method Summary
 Object postProcessBeforeInitialization(Object bean, String beanName)
           
 
Methods inherited from class org.springbyexample.util.log.LoggerBeanPostProcessor
getLogger, getOrder, injectMethod, postProcessAfterInitialization, processLogger, setLoggerFactoryMap, setMethodName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGER_AWARE_METHOD_NAME

protected static final String LOGGER_AWARE_METHOD_NAME
See Also:
Constant Field Values
Constructor Detail

LoggerAwareBeanPostProcessor

public LoggerAwareBeanPostProcessor()
Method Detail

postProcessBeforeInitialization

public Object postProcessBeforeInitialization(Object bean,
                                              String beanName)
                                       throws BeansException
Specified by:
postProcessBeforeInitialization in interface BeanPostProcessor
Overrides:
postProcessBeforeInitialization in class LoggerBeanPostProcessor
Throws:
BeansException


Copyright © 2008-2009 Spring by Example. All Rights Reserved.