JBossDDObjectFactorypublic class JBossDDObjectFactory extends org.jboss.metamodel.descriptor.DDObjectFactory Represents the jboss.xml deployment descriptor for the 2.1 schema |
Fields Summary |
---|
private static final Logger | log | private EjbJarDD | dd | private Class | ejbClass |
Constructors Summary |
---|
public JBossDDObjectFactory(EjbJarDD dd)
super();
this.dd = dd;
|
Methods Summary |
---|
public void | addChild(XmlAnnotation parent, org.jboss.metamodel.descriptor.NameValuePair property, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
parent.addProperty(property);
| public void | addChild(XmlAnnotation parent, org.jboss.metamodel.descriptor.InjectionTarget injectionTarget, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
parent.setInjectionTarget(injectionTarget);
| public void | addChild(EnterpriseBeans parent, ActivationConfig config, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
parent.setDefaultActivationConfig(config);
| public void | addChild(ActivationConfig parent, org.jboss.metamodel.descriptor.NameValuePair property, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
parent.addActivationConfigProperty(property);
| public void | addChild(Consumer parent, Producer producer, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
if (producer.isLocal())
parent.addLocalProducer(producer);
else parent.addProducer(producer);
| public void | addChild(Consumer parent, RemoteBinding binding, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
parent.addRemoteBinding(binding);
| public void | addChild(AssemblyDescriptor parent, MessageDestination destination, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
parent.addMessageDestination(destination);
| public void | addChild(AssemblyDescriptor parent, org.jboss.security.SecurityRoleMetaData srm, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
parent.addSecurityRoleMetaData(srm);
| public void | addChild(EnterpriseBeans parent, CacheConfig config, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)Called when parsing character is complete.
parent.setCacheConfig(config);
| public void | addChild(EnterpriseBeans parent, PoolConfig config, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)Called when parsing character is complete.
parent.setPoolConfig(config);
| public void | addChild(EnterpriseBeans parent, MethodAttributes attributes, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)Called when parsing character is complete.
parent.setMethodAttributes(attributes);
| public void | addChild(EnterpriseBeans parent, RemoteBinding binding, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
parent.addRemoteBinding(binding);
| public void | addChild(EnterpriseBeans parent, org.jboss.metamodel.descriptor.InjectionTarget ignoreDependency, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
parent.addIgnoreDependency(ignoreDependency);
| public void | addChild(EnterpriseBeans parent, XmlAnnotation xmlAnnotation, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
parent.addXmlAnnotation(xmlAnnotation);
| public void | addChild(MethodAttributes parent, Method method, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
parent.addMethod(method);
| public void | addChild(Consumer parent, CurrentMessage message, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
parent.setCurrentMessage(message);
| public void | addChild(Consumer parent, PoolConfig config, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
parent.setPoolConfig(config);
| public void | addChild(Consumer parent, MessageProperties message, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)Called when parsing character is complete.
parent.setMessageProperties(message);
| public void | addChild(CurrentMessage parent, Method method, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)Called when parsing character is complete.
parent.addMethod(method);
| public void | addChild(MessageProperties parent, Method method, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)Called when parsing character is complete.
parent.addMethod(method);
| public void | addChild(EnterpriseBeans parent, Service service, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)Called when parsing character is complete.
parent.addEnterpriseBean(service);
| public void | addChild(Service parent, org.jboss.metamodel.descriptor.EjbRef ref, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)Called when parsing character is complete.
parent.addEjbRef(ref);
| public void | addChild(Service parent, RemoteBinding binding, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)Called when parsing character is complete.
parent.addRemoteBinding(binding);
| public void | addChild(Service parent, org.jboss.metamodel.descriptor.EjbLocalRef ref, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)Called when parsing character is complete.
parent.addEjbLocalRef(ref);
| public void | addChild(Service parent, org.jboss.metamodel.descriptor.ResourceRef ref, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)Called when parsing character is complete.
parent.addResourceRef(ref);
| public void | addChild(Service parent, org.jboss.metamodel.descriptor.JndiRef ref, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)Called when parsing character is complete.
parent.addJndiRef(ref);
| public void | addChild(Service parent, org.jboss.metamodel.descriptor.ResourceEnvRef ref, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)Called when parsing character is complete.
parent.addResourceEnvRef(ref);
| public void | addChild(Consumer parent, org.jboss.metamodel.descriptor.EjbRef ref, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)Called when parsing character is complete.
parent.addEjbRef(ref);
| public void | addChild(Consumer parent, org.jboss.metamodel.descriptor.EjbLocalRef ref, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)Called when parsing character is complete.
parent.addEjbLocalRef(ref);
| public void | addChild(Consumer parent, org.jboss.metamodel.descriptor.ResourceRef ref, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)Called when parsing character is complete.
parent.addResourceRef(ref);
| public void | addChild(Consumer parent, org.jboss.metamodel.descriptor.JndiRef ref, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)Called when parsing character is complete.
parent.addJndiRef(ref);
| public void | addChild(Consumer parent, org.jboss.metamodel.descriptor.ResourceEnvRef ref, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)Called when parsing character is complete.
parent.addResourceEnvRef(ref);
| public void | addChild(EnterpriseBeans parent, Consumer consumer, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)Called when parsing character is complete.
parent.addEnterpriseBean(consumer);
| public void | addChild(EnterpriseBeans parent, org.jboss.metamodel.descriptor.JndiRef ref, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)Called when parsing character is complete.
parent.addJndiRef(ref);
| public void | addChild(EjbJarDD parent, ResourceManager manager, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)Called when parsing character is complete.
parent.addResourceManager(manager);
| public void | addChild(EnterpriseBeans parent, EnterpriseBeans ejbs, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)Called when parsing character is complete.
| public void | addChild(EnterpriseBeans parent, org.jboss.metamodel.descriptor.EjbRef ref, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)Called when parsing character is complete.
parent.updateEjbRef(ref);
| public void | addChild(EnterpriseBeans parent, org.jboss.metamodel.descriptor.EjbLocalRef ref, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)Called when parsing character is complete.
parent.updateEjbLocalRef(ref);
| public void | addChild(EnterpriseBeans parent, ClusterConfig config, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)Called when parsing character is complete.
parent.setClusterConfig(config);
| public void | addChild(EnterpriseBeans parent, org.jboss.metamodel.descriptor.ResourceRef ref, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)Called when parsing character is complete.
parent.updateResourceRef(ref);
| public void | addChild(EnterpriseBeans parent, org.jboss.metamodel.descriptor.MessageDestinationRef ref, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)Called when parsing character is complete.
parent.updateMessageDestinationRef(ref);
| public void | addChild(EnterpriseBeans parent, org.jboss.ws.integration.ServiceRefMetaData ref, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)Called when parsing character is complete.
parent.addServiceRef(ref);
| public void | addChild(EnterpriseBeans parent, org.jboss.metamodel.descriptor.ResourceEnvRef ref, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)Called when parsing character is complete.
parent.updateResourceEnvRef(ref);
| public java.lang.Object | completeRoot(java.lang.Object root, org.jboss.xb.binding.UnmarshallingContext ctx, java.lang.String uri, java.lang.String name)
return root;
| protected java.lang.String | getValue(java.lang.String name, java.lang.String value)
if (value.startsWith("${") && value.endsWith("}"))
{
String replacement = StringPropertyReplacer.replaceProperties(value);
if (replacement != null)
value = replacement;
}
return value;
| public java.lang.Object | newChild(MethodAttributes attributes, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs)Called when parsing of a new element started.
Object child = null;
if (localName.equals("method"))
{
child = new Method();
}
return child;
| public java.lang.Object | newChild(AssemblyDescriptor descriptor, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs)Called when parsing of a new element started.
Object child = null;
if (localName.equals("message-destination"))
{
child = new MessageDestination();
}
if (localName.equals("security-role"))
{
child = new SecurityRoleMetaData("dummy_to_be_replaced_in_setValue");
}
return child;
| public java.lang.Object | newChild(EnterpriseBeans ejbs, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs)Called when parsing of a new element started.
Object child = null;
if ((child = this.newEnvRefGroupChild(localName)) != null)
{
return child;
}
if (localName.equals("session"))
{
ejbClass = SessionEnterpriseBean.class;
child = ejbs;
}
else if (localName.equals("message-driven"))
{
ejbClass = MessageDrivenBean.class;
child = ejbs;
}
else if (localName.equals("service"))
{
child = new Service();
}
else if (localName.equals("consumer"))
{
child = new Consumer();
}
else if (localName.equals("method-attributes"))
{
child = new MethodAttributes();
}
else if (localName.equals("annotation"))
{
child = new XmlAnnotation();
}
else if (localName.equals("ignore-dependency"))
{
child = new InjectionTarget();
}
else if (localName.equals("cluster-config"))
{
child = new ClusterConfig();
}
else if (localName.equals("remote-binding"))
{
child = new RemoteBinding();
}
else if (localName.equals("cache-config"))
{
child = new CacheConfig();
}
else if (localName.equals("pool-config"))
{
child = new PoolConfig();
}
else if (localName.equals("default-activation-config"))
{
child = new ActivationConfig();
}
return child;
| public java.lang.Object | newChild(ActivationConfig parent, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs)
Object child = null;
if (localName.equals("default-activation-config-property"))
{
child = new NameValuePair();
}
return child;
| public java.lang.Object | newChild(XmlAnnotation parent, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs)
Object child = null;
if (localName.equals("injection-target"))
{
child = new InjectionTarget();
}
else if (localName.equals("property"))
{
child = new NameValuePair();
}
return child;
| public java.lang.Object | newChild(EjbJarDD dd, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs)Called when parsing of a new element started.
Object child = null;
if (localName.equals("enterprise-beans"))
{
child = dd.getEnterpriseBeans();
if (child == null)
{
dd.setEnterpriseBeans(new EnterpriseBeans());
child = dd.getEnterpriseBeans();
}
}
else if (localName.equals("assembly-descriptor"))
{
child = dd.getAssemblyDescriptor();
if (child == null)
{
dd.setAssemblyDescriptor(new AssemblyDescriptor());
child = dd.getAssemblyDescriptor();
}
}
else if (localName.equals("resource-manager"))
{
child = new ResourceManager();
}
return child;
| public java.lang.Object | newChild(Consumer consumer, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs)Called when parsing of a new element started.
Object child = null;
if ((child = this.newEnvRefGroupChild(localName)) != null)
return child;
if (localName.equals("current-message"))
{
child = new CurrentMessage();
}
else if (localName.equals("message-properties"))
{
child = new MessageProperties();
}
else if (localName.equals("producer"))
{
child = new Producer(false);
}
else if (localName.equals("local-producer"))
{
child = new Producer(true);
}
else if (localName.equals("annotation"))
{
child = new XmlAnnotation();
}
else if (localName.equals("ignore-dependency"))
{
child = new InjectionTarget();
}
else if (localName.equals("remote-binding"))
{
child = new RemoteBinding();
}
else if (localName.equals("pool-config"))
{
child = new PoolConfig();
}
return child;
| public java.lang.Object | newChild(Service service, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs)Called when parsing of a new element started.
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 java.lang.Object | newChild(CurrentMessage message, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs)Called when parsing of a new element started.
Object child = null;
if (localName.equals("method"))
{
child = new Method();
}
return child;
| public java.lang.Object | newChild(MessageProperties properties, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs)Called when parsing of a new element started.
Object child = null;
if (localName.equals("method"))
{
child = new Method();
}
return child;
| public java.lang.Object | newRoot(java.lang.Object root, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs)Return the root.
return dd;
| public static EjbJarDD | parse(java.net.URL ddResource, EjbJarDD dd)
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, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)
if (localName.equals("annotation-class"))
{
xmlAnnotation.setAnnotationClass(getValue(localName, value));
}
else if (localName.equals("annotation-implementation-class"))
{
xmlAnnotation.setAnnotationImplementationClass(getValue(localName, value));
}
| public void | setValue(org.jboss.metamodel.descriptor.NameValuePair property, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.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(ResourceManager manager, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)
if (localName.equals("res-name"))
{
manager.setResourceName(getValue(localName, value));
}
else if (localName.equals("res-jndi-name"))
{
manager.setResourceJndiName(getValue(localName, value));
}
| public void | setValue(MessageDestination destination, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)
if (localName.equals("message-destination-name"))
{
destination.setMessageDestinationName(getValue(localName, value));
}
else if (localName.equals("jndi-name"))
{
destination.setJndiName(getValue(localName, value));
}
| public void | setValue(EnterpriseBeans ejbs, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)
if (localName.equals("ejb-name"))
{
ejbs.setCurrentEjbName(value, ejbClass);
}
else if (localName.equals("jndi-name"))
{
ejbs.setJndiName(getValue(localName, value));
}
else if (localName.equals("home-jndi-name"))
{
ejbs.setHomeJndiName(getValue(localName, value));
}
else if (localName.equals("local-jndi-name"))
{
ejbs.setLocalJndiName(getValue(localName, value));
}
else if (localName.equals("local-home-jndi-name"))
{
ejbs.setLocalHomeJndiName(getValue(localName, value));
}
else if (localName.equals("security-domain"))
{
ejbs.setSecurityDomain(getValue(localName, value));
}
else if (localName.equals("depends"))
{
ejbs.addDependency(getValue(localName, value));
}
else if (localName.equals("run-as-principal"))
{
ejbs.setRunAsPrincipal(getValue(localName, value));
}
else if (localName.equals("aop-domain-name"))
{
ejbs.setAopDomainName(getValue(localName, value));
}
else if (localName.equals("resource-adapter-name"))
{
ejbs.setResourceAdapterName(getValue(localName, value));
}
else if (localName.equals("destination-jndi-name"))
{
ejbs.setDestinationJndiName(getValue(localName, value));
}
else if (localName.equals("mdb-user"))
{
ejbs.setMdbUser(getValue(localName, value));
}
else if (localName.equals("mdb-passwd"))
{
ejbs.setMdbPassword(getValue(localName, value));
}
else if (localName.equals("mdb-subscription-id"))
{
ejbs.setMdbSubscriptionId(getValue(localName, value));
}
else if (localName.equals("clustered"))
{
ejbs.setClustered(getValue(localName, value));
}
else if (localName.equals("concurrent"))
{
ejbs.setConcurrent(getValue(localName, value));
}
| public void | setValue(Service service, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)Called when a child element with simple content is read for DD.
if (localName.equals("ejb-name"))
{
service.setEjbName(getValue(localName, value));
}
if (localName.equals("object-name"))
{
service.setObjectName(getValue(localName, value));
}
else if (localName.equals("ejb-class"))
{
service.setEjbClass(getValue(localName, value));
}
if (localName.equals("xmbean"))
{
service.setXMBean(getValue(localName, value));
}
else if (localName.equals("local"))
{
service.setLocal(getValue(localName, value));
}
else if (localName.equals("remote"))
{
service.setRemote(getValue(localName, value));
}
else if (localName.equals("management"))
{
service.setManagement(getValue(localName, value));
}
else if (localName.equals("jndi-name"))
{
service.setJndiName(getValue(localName, value));
}
else if (localName.equals("local-jndi-name"))
{
service.setLocalJndiName(getValue(localName, value));
}
else if (localName.equals("security-domain"))
{
service.setSecurityDomain(getValue(localName, value));
}
else if (localName.equals("aop-domain-name"))
{
service.setAopDomainName(getValue(localName, value));
}
else if (localName.equals("depends"))
{
service.addDependency(getValue(localName, value));
}
| public void | setValue(Consumer consumer, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)Called when a child element with simple content is read for DD.
if (localName.equals("message-destination"))
{
consumer.setDestination(getValue(localName, value));
}
else if (localName.equals("message-destination-type"))
{
consumer.setDestinationType(getValue(localName, value));
}
else if (localName.equals("ejb-class"))
{
consumer.setEjbClass(getValue(localName, value));
consumer.setEjbName(getValue(localName, value));
}
else if (localName.equals("local"))
{
consumer.setLocal(getValue(localName, value));
}
else if (localName.equals("remote"))
{
consumer.setRemote(getValue(localName, value));
}
else if (localName.equals("jndi-name"))
{
consumer.setJndiName(getValue(localName, value));
}
else if (localName.equals("local-jndi-name"))
{
consumer.setLocalJndiName(getValue(localName, value));
}
else if (localName.equals("security-domain"))
{
consumer.setSecurityDomain(getValue(localName, value));
}
else if (localName.equals("run-as-principal"))
{
consumer.setRunAsPrincipal(getValue(localName, value));
}
else if (localName.equals("aop-domain-name"))
{
consumer.setAopDomainName(getValue(localName, value));
}
else if (localName.equals("depends"))
{
consumer.addDependency(getValue(localName, value));
}
| public void | setValue(RemoteBinding binding, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)Called when a child element with simple content is read for DD.
if (localName.equals("jndi-name"))
{
binding.setJndiName(getValue(localName, value));
}
else if (localName.equals("client-bind-url"))
{
binding.setClientBindUrl(getValue(localName, value));
}
else if (localName.equals("proxy-factory"))
{
binding.setProxyFactory(getValue(localName, value));
}
else if (localName.equals("interceptor-stack"))
{
binding.setInterceptorStack(getValue(localName, value));
}
| public void | setValue(MessageProperties properties, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)Called when a child element with simple content is read for DD.
if (localName.equals("delivery"))
{
properties.setDelivery(getValue(localName, value));
}
else if (localName.equals("class"))
{
properties.setClassName(getValue(localName, value));
}
else if (localName.equals("priority"))
{
properties.setPriority(getValue(localName, value));
}
| public void | setValue(ClusterConfig config, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)Called when a child element with simple content is read for DD.
if (localName.equals("load-balance-policy"))
{
config.setLoadBalancePolicy(getValue(localName, value));
}
else if (localName.equals("partition-name"))
{
config.setPartition(getValue(localName, value));
}
| public void | setValue(CacheConfig config, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)Called when a child element with simple content is read for DD.
if (localName.equals("cache-class"))
{
config.setCacheClass(getValue(localName, value));
}
else if (localName.equals("cache-max-size"))
{
config.setMaxSize(getValue(localName, value));
}
else if (localName.equals("idle-timeout-seconds"))
{
config.setIdleTimeoutSeconds(getValue(localName, value));
}
else if (localName.equals("remove-timeout-seconds"))
{
config.setRemoveTimeoutSeconds(getValue(localName, value));
}
else if (localName.equals("cache-name"))
{
config.setName(getValue(localName, value));
}
else if (localName.equals("persistence-manager"))
{
config.setPersistenceManager(getValue(localName, value));
}
else if (localName.equals("replication-is-passivation"))
{
config.setReplicationIsPassivation(getValue(localName, value));
}
| public void | setValue(PoolConfig config, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)Called when a child element with simple content is read for DD.
if (localName.equals("pool-class"))
{
config.setPoolClass(getValue(localName, value));
}
else if (localName.equals("pool-max-size"))
{
config.setMaxSize(getValue(localName, value));
}
else if (localName.equals("pool-timeout"))
{
config.setTimeout(getValue(localName, value));
}
| public void | setValue(Method method, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)Called when a child element with simple content is read for DD.
if (localName.equals("method-name"))
{
method.setMethodName(getValue(localName, value));
}
else if (localName.equals("transaction-timeout"))
{
method.setTransactionTimeout(getValue(localName, value));
}
| public void | setValue(EjbJarDD dd, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)Called when a child element with simple content is read for DD.
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 void | setValue(Producer producer, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)Called when a child element with simple content is read for DD.
if (localName.equals("class"))
{
producer.setClassName(getValue(localName, value));
}
else if (localName.equals("connection-factory"))
{
producer.setConnectionFactory(getValue(localName, value));
}
| public void | setValue(org.jboss.security.SecurityRoleMetaData srm, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)Called when a child element with simple content is read for DD.
if (localName.equals("role-name"))
{
// FIXME: NYI
// srm.setRoleName(getValue(localName, value));
throw new RuntimeException("NYI");
}
else if (localName.equals("principal-name"))
{
srm.addPrincipalName(getValue(localName, value));
}
|
|