/** * Called when parsing character is complete. */ public void addChild(EjbJarDD parent, ResourceManager manager, UnmarshallingContext navigator, String namespaceURI, String localName) { parent.addResourceManager(manager); }
/** * Called when parsing character is complete. */ public void addChild(EjbJarDD parent, AssemblyDescriptor descriptor, UnmarshallingContext navigator, String namespaceURI, String localName) { parent.setAssemblyDescriptor(descriptor); }
public void addChild(EjbJarDD parent, EnterpriseBeans ejbs, UnmarshallingContext navigator, String namespaceURI, String localName) { parent.setEnterpriseBeans(ejbs); }
child = dd.getEnterpriseBeans(); if (child == null) dd.setEnterpriseBeans(new EnterpriseBeans()); child = dd.getEnterpriseBeans(); child = dd.getAssemblyDescriptor(); if (child == null) dd.setAssemblyDescriptor(new AssemblyDescriptor()); child = dd.getAssemblyDescriptor(); child = dd.getWebservices(); if (child == null) dd.setWebservices(new Webservices()); child = dd.getWebservices();
/** * Called when a child element with simple content is read for DD. */ public void setValue(EjbJarDD dd, UnmarshallingContext navigator, String namespaceURI, String localName, String value) { if (localName.equals("security-domain")) { dd.setSecurityDomain(getValue(localName, value)); } else if (localName.equals("unauthenticated-principal")) { dd.setUnauthenticatedPrincipal(getValue(localName, value)); } else if (localName.equals("jmx-name")) { dd.setJmxName(getValue(localName, value)); } }
public Object newRoot(Object root, UnmarshallingContext navigator, String namespaceURI, String localName, Attributes attrs) { final EjbJarDD dd; if (root == null) { root = dd = new EjbJarDD(); } else { dd = (EjbJarDD)root; } if (attrs.getLength() > 0) { for (int i = 0; i < attrs.getLength(); ++i) { if (attrs.getLocalName(i).equals("version")) { dd.setVersion(attrs.getValue(i)); } } } return root; }
/** * Called when a child element with simple content is read for DD. */ public void setValue(EjbJarDD dd, UnmarshallingContext navigator, String namespaceURI, String localName, String value) { if (localName.equals("display-name")) { dd.setDisplayName(getValue(localName, value)); } }
public void addChild(EjbJarDD parent, Interceptors interceptors, UnmarshallingContext navigator, String namespaceURI, String localName) { parent.setInterceptors(interceptors); }
public static EjbJarDD parse(URL ddResource, EjbJarDD dd) throws JBossXBException, IOException { ObjectModelFactory factory = null; Unmarshaller unmarshaller = null; if (ddResource != null) { log.debug("found jboss.xml " + ddResource); if (dd == null) dd = new EjbJarDD(); factory = new JBossDDObjectFactory(dd); UnmarshallerFactory unmarshallerFactory = UnmarshallerFactory.newInstance(); unmarshaller = unmarshallerFactory.newUnmarshaller(); unmarshaller.setEntityResolver(new JBossEntityResolver()); unmarshaller.setNamespaceAware(true); unmarshaller.setSchemaValidation(true); unmarshaller.setValidation(true); dd = (EjbJarDD)unmarshaller.unmarshal(ddResource.openStream(), factory, null); } return dd; }
child = dd.getEnterpriseBeans(); if (child == null) dd.setEnterpriseBeans(new EnterpriseBeans()); child = dd.getEnterpriseBeans(); child = dd.getAssemblyDescriptor(); if (child == null) dd.setAssemblyDescriptor(new AssemblyDescriptor()); child = dd.getAssemblyDescriptor(); child = dd.getWebservices(); if (child == null) dd.setWebservices(new Webservices()); child = dd.getWebservices();
/** * Called when a child element with simple content is read for DD. */ public void setValue(EjbJarDD dd, UnmarshallingContext navigator, String namespaceURI, String localName, String value) { if (localName.equals("security-domain")) { dd.setSecurityDomain(getValue(localName, value)); } else if (localName.equals("unauthenticated-principal")) { dd.setUnauthenticatedPrincipal(getValue(localName, value)); } else if (localName.equals("jmx-name")) { dd.setJmxName(getValue(localName, value)); } }
public Object newRoot(Object root, UnmarshallingContext navigator, String namespaceURI, String localName, Attributes attrs) { final EjbJarDD dd; if (root == null) { root = dd = new EjbJarDD(); } else { dd = (EjbJarDD)root; } if (attrs.getLength() > 0) { for (int i = 0; i < attrs.getLength(); ++i) { if (attrs.getLocalName(i).equals("version")) { dd.setVersion(attrs.getValue(i)); } } } return root; }
/** * Called when a child element with simple content is read for DD. */ public void setValue(EjbJarDD dd, UnmarshallingContext navigator, String namespaceURI, String localName, String value) { if (localName.equals("display-name")) { dd.setDisplayName(getValue(localName, value)); } }
public void addChild(EjbJarDD parent, Interceptors interceptors, UnmarshallingContext navigator, String namespaceURI, String localName) { parent.setInterceptors(interceptors); }
public static EjbJarDD parse(URL ddResource, EjbJarDD dd) throws JBossXBException, IOException { ObjectModelFactory factory = null; Unmarshaller unmarshaller = null; if (ddResource != null) { log.debug("found jboss.xml " + ddResource); if (dd == null) dd = new EjbJarDD(); factory = new JBossDDObjectFactory(dd); UnmarshallerFactory unmarshallerFactory = UnmarshallerFactory.newInstance(); unmarshaller = unmarshallerFactory.newUnmarshaller(); unmarshaller.setEntityResolver(new JBossEntityResolver()); unmarshaller.setNamespaceAware(true); unmarshaller.setSchemaValidation(true); unmarshaller.setValidation(true); dd = (EjbJarDD)unmarshaller.unmarshal(ddResource.openStream(), factory, null); } return dd; }
/** * Called when parsing character is complete. */ public void addChild(EjbJarDD parent, AssemblyDescriptor descriptor, UnmarshallingContext navigator, String namespaceURI, String localName) { parent.setAssemblyDescriptor(descriptor); }
/** * Called when parsing character is complete. */ public void addChild(EjbJarDD parent, ResourceManager manager, UnmarshallingContext navigator, String namespaceURI, String localName) { parent.addResourceManager(manager); }
public void addChild(EjbJarDD parent, EnterpriseBeans ejbs, UnmarshallingContext navigator, String namespaceURI, String localName) { parent.setEnterpriseBeans(ejbs); }