org.springframework.osgi.context.support
Class BundleContextAwareProcessor

java.lang.Object
  extended by org.springframework.osgi.context.support.BundleContextAwareProcessor
All Implemented Interfaces:
BeanPostProcessor

public class BundleContextAwareProcessor
extends Object
implements BeanPostProcessor

For internal use only. Used by OsgiBundleXmlApplicationContext to inject beans implementing BundleContextAware with a reference to the current BundleContext.

Since:
2.0
Author:
Adrian Colyer, Costin Leau

Field Summary
protected  Log logger
           
 
Constructor Summary
BundleContextAwareProcessor(BundleContext aContext)
           
 
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
 

Field Detail

logger

protected final Log logger
Constructor Detail

BundleContextAwareProcessor

public BundleContextAwareProcessor(BundleContext aContext)
Method Detail

postProcessAfterInitialization

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

postProcessBeforeInitialization

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


Copyright © 2006-2007 Spring Framework. All Rights Reserved.