congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
JBossDDObjectFactory
Code IndexAdd Tabnine to your IDE (free)

How to use
JBossDDObjectFactory
in
org.jboss.ejb3.metamodel

Best Java code snippets using org.jboss.ejb3.metamodel.JBossDDObjectFactory (Showing top 20 results out of 315)

origin: org.jboss/jboss-metadata

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));
 }
}
origin: org.jboss/jboss-metadata

/**
* 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;
}
origin: org.jboss/jboss-metadata

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;
}
origin: org.jboss.ws/jbossws-jboss510-metadata

/**
* 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;
}
origin: org.jboss.ws/jbossws-jboss510-metadata

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;
}
origin: org.jboss.ws/jbossws-jboss510-metadata

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));
 }
}
origin: org.jboss/jboss-metadata

if ((child = this.newEnvRefGroupChild(localName)) != null)
  return child;
origin: org.jboss/jboss-metadata

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));
 }
}
origin: org.jboss.ws/jbossws-jboss510-metadata

if ((child = this.newEnvRefGroupChild(localName)) != null)
  return child;
origin: org.jboss.ws/jbossws-jboss510-metadata

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));
 }
}
origin: org.jboss/jboss-metadata

if ((child = this.newEnvRefGroupChild(localName)) != null)
origin: org.jboss/jboss-metadata

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));
 }
}
origin: org.jboss.ws/jbossws-jboss510-metadata

if ((child = this.newEnvRefGroupChild(localName)) != null)
origin: org.jboss/jboss-metadata

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));
 }
}
origin: org.jboss.ws/jbossws-jboss510-metadata

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));
 }
}
origin: org.jboss/jboss-metadata

/**
* 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));
 }
}
origin: org.jboss.ws/jbossws-jboss510-metadata

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));
 }
}
origin: org.jboss/jboss-metadata

/**
* 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));
 }
}
origin: org.jboss.ws/jbossws-jboss510-metadata

/**
* 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));
 }
}
origin: org.jboss.ws/jbossws-jboss510-metadata

/**
* 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));
 }
}
org.jboss.ejb3.metamodelJBossDDObjectFactory

Javadoc

Represents the jboss.xml deployment descriptor for the 2.1 schema

Most used methods

  • <init>
  • getValue
  • newEnvRefGroupChild

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setScale (BigDecimal)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Option (scala)
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now