IIUC you want to scan the classes in the bundle (or at least those being used 
as blueprint beans) and alter the blueprint recipe as a result.  I did this in 
xbean-blueprint (in geronimo/xbean) using a (not-yet-standardized) blueprint 
namespace handler.

The problem with the current namespace handler API is that it doesn't give you 
access to the bundle at any point.  I got around that by initiializing an 
instance of the namepace handler with the bundle with the interesting classes.  
However, I think the current namespace handler API is defective in that it does 
not give the namespace handler instance direct access to the bundle.  
Unfortunately I haven't had time to propose an api change.

thanks
david jencks

On Jun 18, 2010, at 9:19 AM, Norman Maurer wrote:

> Hi all,
> 
> I'm very new to Aries and wonder if its possible to add some kind of
> "PostBeanProcessor" (this is how it get called in spring). We at JAMES
> use spring at the moment to wire up our application as standalone
> application. Now we are working on "osgify" JAMES. We need to
> implement some kind of lifecycle methods. For example if a "service"
> implements LogEnabled interface it need to get a Log injected. The
> same is true for other dependencies.. We use JSR250 annotations, so we
> would need to handle this kind of stuff. I did some tests with
> spring-dm the last weeks and it seems to work but aries looks very
> interesting too.
> 
> You know, Eat your own dogfood ;)
> 
> 
> Thx,
> Norman

Reply via email to