org.riotfamily.riot.runtime
Class RiotRuntimeBeanPostProcessor

java.lang.Object
  extended by org.riotfamily.riot.runtime.RiotRuntimeBeanPostProcessor
All Implemented Interfaces:
BeanPostProcessor

public class RiotRuntimeBeanPostProcessor
extends Object
implements BeanPostProcessor

BeanPostProcessor that injects the RiotRuntime object into all beans implementing the RiotRuntimeAware interface. The injection is performed before any initialization callbacks are invoked.

Since:
6.5
Author:
Felix Gnass [fgnass at neteye dot de]

Constructor Summary
RiotRuntimeBeanPostProcessor(RiotRuntime runtime)
           
 
Method Summary
 Object postProcessAfterInitialization(Object bean, String beanName)
           
 Object postProcessBeforeInitialization(Object bean, String beanName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RiotRuntimeBeanPostProcessor

public RiotRuntimeBeanPostProcessor(RiotRuntime runtime)
Method Detail

postProcessBeforeInitialization

public Object postProcessBeforeInitialization(Object bean,
                                              String beanName)
Specified by:
postProcessBeforeInitialization in interface BeanPostProcessor

postProcessAfterInitialization

public Object postProcessAfterInitialization(Object bean,
                                             String beanName)
Specified by:
postProcessAfterInitialization in interface BeanPostProcessor