1 17 18 package org.apache.geronimo.j2ee.deployment; 19 20 import java.util.Collection ; 21 22 import javax.xml.namespace.QName ; 23 24 import org.apache.geronimo.gbean.GBeanInfo; 25 import org.apache.geronimo.gbean.GBeanInfoBuilder; 26 import org.apache.geronimo.j2ee.j2eeobjectnames.NameFactory; 27 28 31 public class NamingBuilderCollectionGBean extends NamingBuilderCollection { 32 public NamingBuilderCollectionGBean(Collection builders, String baseElementQNameNamespaceURI, String baseElementQNameLocalPart) { 33 super(builders, new QName (baseElementQNameNamespaceURI, baseElementQNameLocalPart)); 34 } 35 36 static final GBeanInfo GBEAN_INFO; 37 38 static { 39 GBeanInfoBuilder infoBuilder = GBeanInfoBuilder.createStatic(NamingBuilderCollectionGBean.class, NameFactory.MODULE_BUILDER); 40 infoBuilder.addAttribute("baseElementQNameNamespaceURI", String .class, true, true); 41 infoBuilder.addAttribute("baseElementQNameLocalPart", String .class, true, true); 42 infoBuilder.addReference("NamingBuilders", NamingBuilder.class); 43 44 infoBuilder.setConstructor(new String [] {"NamingBuilders", "baseElementQNameNamespaceURI", "baseElementQNameLocalPart"}); 45 46 GBEAN_INFO = infoBuilder.getBeanInfo(); 47 } 48 49 public static GBeanInfo getGBeanInfo() { 50 return GBEAN_INFO; 51 } 52 } 53 54 | Popular Tags |