[jboss-user] [Microcontainer] - Re: Inputs to deployers

alesj do-not-reply at jboss.com
Thu Jun 18 09:51:59 EDT 2009


"jaikiran" wrote : 
  | So what is the expected behaviour of setInput(Class<?> clazz). If it was intended to use the classname as the attachment key, then any reason why the API expects a Class<?> instead of a String?
  | 
To help us with generic usage.

In most cases real deployers are meant to be component deployers,
where we expect only a single attachment by that type,
hence we are able to store it under class name.

It can also be used if you're aware that there will be only single
deployer storing its attachment under that class name.
I agree here with you that this might not be completely obvious,
hence you must use caution and common sense on when you use this single input. ;-)

"jaikiran" wrote : 
  | Also, how does the addInput API influence the deployers? 
  | 
It helps with the "natural" order (order by inputs/outputs).
It might also help with something you wanted - AbstractAllInputDeployer.

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

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



More information about the jboss-user mailing list