/** * 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(); } /**
/** * 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); }
/** * Make sure we always have a JBossWebMetaData object attached, even if there is no jboss-web.xml * in the deployment */ @Override protected void createMetaData(DeploymentUnit unit, String name, String suffix, String key) throws DeploymentException { super.createMetaData(unit, name, suffix, key); JBossWebMetaData result = unit.getTransientManagedObjects().getAttachment(getOutput()); if (result == null) { result = new JBossWebMetaData(); unit.getTransientManagedObjects().addAttachment(key, result, getOutput()); } } }
/** * Create a new JBossWebAppParsingDeployer. */ public JBossWebAppParsingDeployer() { super(JBossWebMetaData.class); setName("jboss-web.xml"); }