1 17 18 package org.apache.geronimo.tomcat.deployment; 19 20 import javax.enterprise.deploy.model.DeployableObject ; 21 import javax.enterprise.deploy.shared.ModuleType ; 22 import javax.enterprise.deploy.spi.DeploymentConfiguration ; 23 24 import org.apache.geronimo.deployment.ModuleConfigurer; 25 import org.apache.geronimo.gbean.GBeanInfo; 26 import org.apache.geronimo.gbean.GBeanInfoBuilder; 27 import org.apache.geronimo.j2ee.j2eeobjectnames.NameFactory; 28 29 32 public class WARConfigurer implements ModuleConfigurer { 33 public DeploymentConfiguration createConfiguration(DeployableObject deployable) { 34 if (ModuleType.WAR.equals(deployable.getType())) { 35 return new WARConfiguration(deployable); 36 } else { 37 return null; 38 } 39 } 40 41 public static final GBeanInfo GBEAN_INFO; 42 43 static { 44 GBeanInfoBuilder infoFactory = new GBeanInfoBuilder(WARConfigurer.class, NameFactory.DEPLOYMENT_CONFIGURER); 45 infoFactory.addInterface(ModuleConfigurer.class); 46 GBEAN_INFO = infoFactory.getBeanInfo(); 47 } 48 49 public static GBeanInfo getGBeanInfo() { 50 return GBEAN_INFO; 51 } 52 } 53 | Popular Tags |