protected static DeploymentUnit wrap(DeploymentUnit unit) { if (unit instanceof VFSDeploymentUnit) return new VFSDUDelegate((VFSDeploymentUnit)unit); else return new DUDelegate(unit); }
/** * Create a new JBossAppParsingDeployer. */ public JBossAppParsingDeployer() { super(JBossAppMetaData.class); addInput(EarMetaData.class); addInput(JBossAppMetaData.class); // EarContentsDeployer can produce it setName("jboss-app.xml"); setTopLevelOnly(true); setNameIgnoreMechanism(new NonEarJBossAppNameIgnoreMechanism()); // JBAS-7974 }
public Ejb2xComponentDeployer() { setInput(JBossMetaData.class); setOutput(deploymentVisitor.getComponentType()); setDeploymentVisitor(deploymentVisitor); }
/** * Create a new TldParsingDeployer. */ public TldParsingDeployer() { super(TldMetaData.class); setSuffix(".tld"); setAllowMultipleFiles(true); setFilter(MetaDataTypeFilter.ALL); }
public AnnotationMetaDataDeployer() { setStage(DeploymentStages.POST_CLASSLOADER); addInput(EjbJarMetaData.class); addInput(WebMetaData.class); addInput(ApplicationClientMetaData.class); addOutput(EJB_ANNOTATED_ATTACHMENT_NAME); addOutput(CLIENT_ANNOTATED_ATTACHMENT_NAME); addOutput(WEB_ANNOTATED_ATTACHMENT_NAME); }
/** * Create a new EARInitializingDeployer. */ public EARInitializingDeployer() { super(JBossAppMetaData.class); setOutput(PolicyConfiguration.class); }
/** * Get the virtual file path for the jboss-web descriptor in the * DeploymentContext.getMetaDataPath. * * @return the current virtual file path for the web-app descriptor */ public String getWebXmlPath() { return getName(); } /**
public ResourceUtilCleanupDeployer() { super(Module.class); setStage(DeploymentStages.PRE_REAL); }
/** * Create a new JaccCommitDeployer. */ public JaccCommitDeployer() { setInput(PolicyConfiguration.class); }
/** * Set the virtual file path for the sip-app descriptor in the * DeploymentContext.getMetaDataLocation. The standard path is sip.xml * to be found in the WEB-INF metdata path. * * @param sipXmlPath - new virtual file path for the sip-app descriptor */ public void setSipXmlPath(String sipXmlPath) { setName(sipXmlPath); }
/** Resolve objects on deserialization to one of the identity objects. */ private Object readResolve() throws ObjectStreamException { Object identity = getDeploymentState(state); return identity; }
/** * Set the relative order to 1000 by default */ public EARStructure() { setRelativeOrder(1000); }
/** * Set the virtual file path for the jboss-web descriptor in the * DeploymentContext.getMetaDataLocation. The standard path is jboss-web.xml * to be found in the WEB-INF metdata path. * * @param webXmlPath - new virtual file path for the web-app descriptor */ public void setWebXmlPath(String webXmlPath) { setName(webXmlPath); }
public void deploy(DeploymentUnit unit) throws DeploymentException { if (unit instanceof VFSDeploymentUnit == false) return; VFSDeploymentUnit vfsDeploymentUnit = (VFSDeploymentUnit) unit; deploy(vfsDeploymentUnit); }
/** * Get the virtual file path for the application descriptor in the * DeploymentContext.getMetaDataPath. * * @return the current virtual file path for the application descriptor */ public String getAppXmlPath() { return getName(); }
/** * Set the virtual file path for the application descriptor in the * DeploymentContext.getMetaDataLocation. The standard path is application.xml * to be found in the META-INF metdata path. * * @param appXmlPath - new virtual file path for the application descriptor */ public void setAppXmlPath(String appXmlPath) { setName(appXmlPath); }