[jboss-dev-forums] [Design of POJO Server] - Re: Pushing correct aspect manager for a deployment

alesj do-not-reply at jboss.com
Wed Aug 6 09:28:36 EDT 2008


"adrian at jboss.org" wrote : 
  | I didn't even think Ales had finished the ScoppedController?
  | 
It slowly getting better. :-)

The current scope usage can look like this (pretty much what Kabir is using):

Since we only have explicit access to root Controller,
all beans we pass to it must have unique name,
so when we do uninstall we get the right bean.

But alias can be duplicated name, but of course in different scope.
If you add alias to scoped bean via @Alias, 
you then don't need care about any previous beans with the same name,
since alias is applied after PreInstallAction, 
which pushes the bean to the right scoped controller, 
hence alias is applied on scoped controller.

With @Search you can also specify you injection scope,
e.g. only check current controller, not looking into parent.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4169043#4169043

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4169043



More information about the jboss-dev-forums mailing list