Dec 13th, 2010, 09:42 AM
OsgiBeanFactoryPostProcessor and adding BeanPostProcessors
I'm currently working on a project which I want to enable to run in a OSGI-Container. The project use some custom lifecycle stuff which is implemented by BeanPostProcessor implementations.
As I want to simplify the management of the service bundle I thought about building a extender bundle which register some OsgiBeanFactoryPostProcessor which take care of adding the lifecycle BeanPostProcessors to the factory.
So I would not need to declare all the Processors in every bundles spring context files.
Does this sound like something which will work ? I'm looking for some way to make use of BeanPostProcessor's which can be used "across" bundles..
I'm using spring-dm 1.2.1