[jboss-user] [Microcontainer] - Attachments eligible for being passed to the deployers?

jaikiran do-not-reply at jboss.com
Thu Mar 5 02:54:30 EST 2009


If one of the deployers adds a attachment to an unit that is being deployed, will that attachment then be passed on to the list of available deployers for being processed? 

Ex:

public class MyDeployer extends AbstractDeployer
  | {
  | 
  |   public MyDeployer()
  |   {
  |     setOutput(MyType.class);
  | 
  |   }
  | 
  |   public void deploy(DeploymentUnit unit)
  |   {
  |     // do something
  |    ...
  |    // add attachment
  |    MyType myObject = new MyType();
  |    unit.addAttachment(name,myObject);
  |   }
  | 
  | }

So at a later point of time, will the attachment of MyType be passed on to the available deployers?

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

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



More information about the jboss-user mailing list