public void setValue(ResourceManager manager, UnmarshallingContext navigator, String namespaceURI, String localName, String value) { if (localName.equals("res-name")) { manager.setResourceName(getValue(localName, value)); } else if (localName.equals("res-jndi-name")) { manager.setResourceJndiName(getValue(localName, value)); } }
/** * Called when parsing of a new element started. */ public Object newChild(Service service, UnmarshallingContext navigator, String namespaceURI, String localName, Attributes attrs) { Object child = null; if ((child = this.newEnvRefGroupChild(localName)) != null) return child; if (localName.equals("ignore-dependency")) { child = new InjectionTarget(); } else if (localName.equals("annotation")) { child = new XmlAnnotation(); } else if (localName.equals("remote-binding")) { child = new RemoteBinding(); } return child; }
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 of a new element started. */ public Object newChild(Service service, UnmarshallingContext navigator, String namespaceURI, String localName, Attributes attrs) { Object child = null; if ((child = this.newEnvRefGroupChild(localName)) != null) return child; if (localName.equals("ignore-dependency")) { child = new InjectionTarget(); } else if (localName.equals("annotation")) { child = new XmlAnnotation(); } else if (localName.equals("remote-binding")) { child = new RemoteBinding(); } return child; }
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; }
public void setValue(XmlAnnotation xmlAnnotation, UnmarshallingContext navigator, String namespaceURI, String localName, String value) { if (localName.equals("annotation-class")) { xmlAnnotation.setAnnotationClass(getValue(localName, value)); } else if (localName.equals("annotation-implementation-class")) { xmlAnnotation.setAnnotationImplementationClass(getValue(localName, value)); } }
if ((child = this.newEnvRefGroupChild(localName)) != null) return child;
public void setValue(MessageDestination destination, UnmarshallingContext navigator, String namespaceURI, String localName, String value) { if (localName.equals("message-destination-name")) { destination.setMessageDestinationName(getValue(localName, value)); } else if (localName.equals("jndi-name")) { destination.setJndiName(getValue(localName, value)); } }
if ((child = this.newEnvRefGroupChild(localName)) != null) return child;
public void setValue(MessageDestination destination, UnmarshallingContext navigator, String namespaceURI, String localName, String value) { if (localName.equals("message-destination-name")) { destination.setMessageDestinationName(getValue(localName, value)); } else if (localName.equals("jndi-name")) { destination.setJndiName(getValue(localName, value)); } }
if ((child = this.newEnvRefGroupChild(localName)) != null)
public void setValue(XmlAnnotation xmlAnnotation, UnmarshallingContext navigator, String namespaceURI, String localName, String value) { if (localName.equals("annotation-class")) { xmlAnnotation.setAnnotationClass(getValue(localName, value)); } else if (localName.equals("annotation-implementation-class")) { xmlAnnotation.setAnnotationImplementationClass(getValue(localName, value)); } }
if ((child = this.newEnvRefGroupChild(localName)) != null)
public void setValue(NameValuePair property, UnmarshallingContext navigator, String namespaceURI, String localName, String value) { if (localName.equals("activation-config-property-name") || localName.equals("message-driven-config-property-name") || localName.equals("property-name")) { property.setName(getValue(localName, value)); } else if (localName.equals("activation-config-property-value") || localName.equals("message-driven-config-property-value") || localName.equals("property-value")) { property.setValue(getValue(localName, value)); } }
public void setValue(NameValuePair property, UnmarshallingContext navigator, String namespaceURI, String localName, String value) { if (localName.equals("activation-config-property-name") || localName.equals("message-driven-config-property-name") || localName.equals("property-name")) { property.setName(getValue(localName, value)); } else if (localName.equals("activation-config-property-value") || localName.equals("message-driven-config-property-value") || localName.equals("property-value")) { property.setValue(getValue(localName, value)); } }
/** * Called when a child element with simple content is read for DD. */ public void setValue(Producer producer, UnmarshallingContext navigator, String namespaceURI, String localName, String value) { if (localName.equals("class")) { producer.setClassName(getValue(localName, value)); } else if (localName.equals("connection-factory")) { producer.setConnectionFactory(getValue(localName, value)); } }
public void setValue(ResourceManager manager, UnmarshallingContext navigator, String namespaceURI, String localName, String value) { if (localName.equals("res-name")) { manager.setResourceName(getValue(localName, value)); } else if (localName.equals("res-jndi-name")) { manager.setResourceJndiName(getValue(localName, value)); } }
/** * Called when a child element with simple content is read for DD. */ public void setValue(Method method, UnmarshallingContext navigator, String namespaceURI, String localName, String value) { if (localName.equals("method-name")) { method.setMethodName(getValue(localName, value)); } else if (localName.equals("transaction-timeout")) { method.setTransactionTimeout(getValue(localName, value)); } }
/** * Called when a child element with simple content is read for DD. */ public void setValue(Method method, UnmarshallingContext navigator, String namespaceURI, String localName, String value) { if (localName.equals("method-name")) { method.setMethodName(getValue(localName, value)); } else if (localName.equals("transaction-timeout")) { method.setTransactionTimeout(getValue(localName, value)); } }
/** * Called when a child element with simple content is read for DD. */ public void setValue(Producer producer, UnmarshallingContext navigator, String namespaceURI, String localName, String value) { if (localName.equals("class")) { producer.setClassName(getValue(localName, value)); } else if (localName.equals("connection-factory")) { producer.setConnectionFactory(getValue(localName, value)); } }