1 17 package org.apache.geronimo.webservices; 18 19 import org.apache.geronimo.gbean.GBeanInfo; 20 import org.apache.geronimo.gbean.GBeanInfoBuilder; 21 import org.apache.geronimo.j2ee.j2eeobjectnames.NameFactory; 22 23 26 public class SerializableWebServiceContainerFactoryGBean implements WebServiceContainerFactory { 27 28 private final WebServiceContainer webServiceContainer; 29 30 public SerializableWebServiceContainerFactoryGBean(WebServiceContainer webServiceContainer) { 31 this.webServiceContainer = webServiceContainer; 32 } 33 34 public WebServiceContainer getWebServiceContainer() { 35 return webServiceContainer; 36 } 37 38 public static final GBeanInfo GBEAN_INFO; 39 40 static { 41 GBeanInfoBuilder infoBuilder = GBeanInfoBuilder.createStatic(SerializableWebServiceContainerFactoryGBean.class, NameFactory.GERONIMO_SERVICE); 42 infoBuilder.addAttribute("webServiceContainer", WebServiceContainer.class, true); 43 infoBuilder.setConstructor(new String [] {"webServiceContainer"}); 44 GBEAN_INFO = infoBuilder.getBeanInfo(); 45 } 46 47 public static GBeanInfo getGBeanInfo() { 48 return GBEAN_INFO; 49 } 50 } 51 | Popular Tags |