public void setValue(ApplicationClientDD dd, UnmarshallingContext navigator, String namespaceURI, String localName, String value) { if (localName.equals("jndi-name")) dd.setJndiName(value); else if (localName.equals("depends")) dd.addDependency(value); } }
public void addChild(ApplicationClientDD parent, EjbRef ref, UnmarshallingContext navigator, String namespaceURI, String localName) { parent.addEjbRef(ref); }
/** * Called when parsing character is complete. */ public void addChild(ApplicationClientDD parent, EnvEntry entry, UnmarshallingContext navigator, String namespaceURI, String localName) { parent.addEnvEntry(entry); }
root = dd = new ApplicationClientDD(); else dd = (ApplicationClientDD)root; dd.setVersion(attrs.getValue(i)); dd.setMetadataComplete(Boolean.parseBoolean(attrs.getValue(i)));
public void addChild(ApplicationClientDD parent, LifecycleCallback lifecycleCallback, UnmarshallingContext navigator, String namespaceURI, String localName) { if (localName.equals("post-construct")) parent.getPostConstructs().add(lifecycleCallback); else if (localName.equals("pre-destroy")) parent.getPreDestroys().add(lifecycleCallback); else throw new IllegalArgumentException(localName); }
public void addChild(ApplicationClientDD parent, UnifiedServiceRefMetaData sref, UnmarshallingContext navigator, String namespaceURI, String localName) { String refName = sref.getServiceRefName(); if (refName == null) throw new IllegalStateException("Invalid service-ref-name: " + refName); UnifiedServiceRefMetaData targetRef = parent.getServiceRef(refName); if (targetRef == null) { log.debug("Cannot find <service-ref> with name: " + refName); parent.addServiceRef(sref); } else { //targetRef.merge(sref); } }
public void addChild(ApplicationClientDD parent, ServiceRefMetaData serviceref, UnmarshallingContext navigator, String namespaceURI, String localName) { parent.addServiceRef(serviceref); }
public void addChild(ApplicationClientDD parent, MessageDestination dest, UnmarshallingContext navigator, String namespaceURI, String localName) { parent.addMessageDestination(dest); }
public void addChild(ApplicationClientDD parent, MessageDestinationRef ref, UnmarshallingContext navigator, String namespaceURI, String localName) { parent.addMessageDestinationRef(ref); }
public static ApplicationClientDD parse(URL ddResource, ApplicationClientDD dd) throws JBossXBException, IOException { // TODO: how to properly fix this if (dd == null) dd = new ApplicationClientDD(); if (ddResource == null) return dd; log.debug("found jboss-client.xml " + ddResource); JBossClientDDObjectFactory factory = new JBossClientDDObjectFactory(dd); UnmarshallerFactory unmarshallerFactory = UnmarshallerFactory.newInstance(); Unmarshaller unmarshaller = unmarshallerFactory.newUnmarshaller(); unmarshaller.setEntityResolver(new JBossEntityResolver()); unmarshaller.setNamespaceAware(true); unmarshaller.setSchemaValidation(true); unmarshaller.setValidation(true); dd = (ApplicationClientDD)unmarshaller.unmarshal(ddResource.openStream(), factory, null); return dd; }
root = dd = new ApplicationClientDD(); else dd = (ApplicationClientDD)root; dd.setVersion(attrs.getValue(i)); dd.setMetadataComplete(Boolean.parseBoolean(attrs.getValue(i)));
public void addChild(ApplicationClientDD parent, LifecycleCallback lifecycleCallback, UnmarshallingContext navigator, String namespaceURI, String localName) { if (localName.equals("post-construct")) parent.getPostConstructs().add(lifecycleCallback); else if (localName.equals("pre-destroy")) parent.getPreDestroys().add(lifecycleCallback); else throw new IllegalArgumentException(localName); }
public void addChild(ApplicationClientDD parent, ServiceRefMetaData sref, UnmarshallingContext navigator, String namespaceURI, String localName) { String refName = sref.getServiceRefName(); if (refName == null) throw new IllegalStateException("Invalid service-ref-name: " + refName); ServiceRefMetaData targetRef = parent.getServiceRef(refName); if (targetRef == null) { log.debug("Cannot find <service-ref> with name: " + refName); parent.addServiceRef(sref); } else { targetRef.merge(sref); } }
public void addChild(ApplicationClientDD parent, UnifiedServiceRefMetaData serviceref, UnmarshallingContext navigator, String namespaceURI, String localName) { parent.addServiceRef(serviceref); }
public void addChild(ApplicationClientDD parent, MessageDestination dest, UnmarshallingContext navigator, String namespaceURI, String localName) { parent.addMessageDestination(dest); }
public void addChild(ApplicationClientDD parent, MessageDestinationRef ref, UnmarshallingContext navigator, String namespaceURI, String localName) { parent.addMessageDestinationRef(ref); }
public static ApplicationClientDD parse(URL ddResource, ApplicationClientDD dd) throws JBossXBException, IOException { // TODO: how to properly fix this if (dd == null) dd = new ApplicationClientDD(); if (ddResource == null) return dd; log.debug("found jboss-client.xml " + ddResource); JBossClientDDObjectFactory factory = new JBossClientDDObjectFactory(dd); UnmarshallerFactory unmarshallerFactory = UnmarshallerFactory.newInstance(); Unmarshaller unmarshaller = unmarshallerFactory.newUnmarshaller(); unmarshaller.setEntityResolver(new JBossEntityResolver()); unmarshaller.setNamespaceAware(true); unmarshaller.setSchemaValidation(true); unmarshaller.setValidation(true); dd = (ApplicationClientDD)unmarshaller.unmarshal(ddResource.openStream(), factory, null); return dd; }
public void setValue(ApplicationClientDD dd, UnmarshallingContext navigator, String namespaceURI, String localName, String value) { if (localName.equals("jndi-name")) dd.setJndiName(value); else if (localName.equals("depends")) dd.addDependency(value); } }
public void addChild(ApplicationClientDD parent, EjbRef ref, UnmarshallingContext navigator, String namespaceURI, String localName) { parent.addEjbRef(ref); }
/** * Called when parsing character is complete. */ public void addChild(ApplicationClientDD parent, EnvEntry entry, UnmarshallingContext navigator, String namespaceURI, String localName) { parent.addEnvEntry(entry); }