org.springframework.osgi.extender
Interface OsgiBeanFactoryPostProcessor
public interface OsgiBeanFactoryPostProcessor
Extender hook that allows custom modification of an application context's
bean definitions. New beans can be created, removed or existing definitions
modified.
Similar in functionality with Spring's BeanFactoryPostProcessor, this
interface also considers the BundleContext in which the beanFactory runs.
Just like the BeanFactoryPostProcessor, the post processing happens
during the creation of the bean factory but before any beans (including
declared BeanFactoryPostProcessors) are initialized.
- Author:
- Costin Leau
- See Also:
BeanFactoryPostProcessor
,
BundleContext
postProcessBeanFactory
void postProcessBeanFactory(BundleContext bundleContext,
ConfigurableListableBeanFactory beanFactory)
throws BeansException,
InvalidSyntaxException,
BundleException
- Modifies the application context's internal bean factory after its
standard initialization. All bean definitions will have been loaded, but
no beans will have been instantiated yet. This allows for overriding or
adding properties even to eager-initializing beans.
- Parameters:
bundleContext
- bundlebeanFactory
- the bean factory used by the application context
- Throws:
BeansException
- in case of factory errors
InvalidSyntaxException
- in case of OSGi filters errors
BundleException
- in case of OSGi bundle errors
Copyright © 2006-2009 Spring Framework. All Rights Reserved.