JBoss Community

Deployer ordering question (JBoss OSGi)

reply from Thomas Diesler in JBoss Microcontainer - View the full discussion

In

 

/**
 * @author <a href="david@redhat.com">David Bosschaert</a>
 */
public class OSGiStartLevelMetaDataDeployer extends AbstractRealDeployer
{

 

you can add some output type to the deployment unit, which you can add to the inputs of

 

public class OSGiBundleStateInstallDeployer extends AbstractSimpleRealDeployer<AbstractBundleState>
{
   public OSGiBundleStateInstallDeployer()
   {
      super(AbstractBundleState.class);
      addInput(ClassLoadingMetaData.class);
      setStage(DeploymentStages.POST_PARSE);
      setTopLevelOnly(true);
   }

 

This would ensure that the SLMDD get executed before.

Reply to this message by going to Community

Start a new discussion in JBoss Microcontainer at Community