1 22 package org.jboss.deployment; 23 24 import org.jboss.deployers.plugins.deployers.helpers.ObjectModelFactoryDeployer; 25 import org.jboss.deployers.spi.DeploymentException; 26 import org.jboss.deployers.spi.deployer.DeploymentUnit; 27 import org.jboss.xb.binding.ObjectModelFactory; 28 29 36 public class AppParsingDeployer extends ObjectModelFactoryDeployer<J2eeApplicationMetaData> 37 { 38 39 private String appXmlPath = "application.xml"; 40 41 public AppParsingDeployer() 42 { 43 super(J2eeApplicationMetaData.class); 44 } 45 46 52 public String getAppXmlPath() 53 { 54 return appXmlPath; 55 } 56 63 public void setAppXmlPath(String appXmlPath) 64 { 65 this.appXmlPath = appXmlPath; 66 } 67 68 72 @Override 73 protected ObjectModelFactory getObjectModelFactory(J2eeApplicationMetaData root) 74 { 75 return new J2eeApplicationObjectFactory(); 76 } 77 78 82 @Override 83 public void deploy(DeploymentUnit unit) throws DeploymentException 84 { 85 createMetaData(unit, appXmlPath, null); 86 } 87 88 } 89 | Popular Tags |