org.apache.openejb.jee
Class ResourceEnvRef

java.lang.Object
  extended by org.apache.openejb.jee.ResourceEnvRef
All Implemented Interfaces:
Injectable, JndiReference, Keyable<String>

public class ResourceEnvRef
extends Object
implements JndiReference

javaee6.xsd

Java class for resource-env-refType complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="resource-env-refType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="description" type="{http://java.sun.com/xml/ns/javaee}descriptionType" maxOccurs="unbounded" minOccurs="0"/>
         <element name="resource-env-ref-name" type="{http://java.sun.com/xml/ns/javaee}jndi-nameType"/>
         <element name="resource-env-ref-type" type="{http://java.sun.com/xml/ns/javaee}fully-qualified-classType" minOccurs="0"/>
         <group ref="{http://java.sun.com/xml/ns/javaee}resourceGroup"/>
       </sequence>
       <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  TextMap description
           
protected  String id
           
protected  Set<InjectionTarget> injectionTarget
           
protected  String lookupName
           
protected  String mappedName
           
protected  String resourceEnvRefName
           
protected  String resourceEnvRefType
           
 
Constructor Summary
ResourceEnvRef()
           
ResourceEnvRef(String resourceEnvRefName, Class resourceEnvRefType)
           
ResourceEnvRef(String resourceEnvRefName, String resourceEnvRefType)
           
 
Method Summary
 String getDescription()
           
 Text[] getDescriptions()
           
 String getId()
           
 Set<InjectionTarget> getInjectionTarget()
           
 String getKey()
          Gets the immutable key for this object.
 String getLookupName()
           
 String getMappedName()
           
 String getName()
           
 String getResourceEnvRefName()
           
 String getResourceEnvRefType()
           
 String getType()
           
 ResourceEnvRef injectionTarget(Class<?> clazz, String property)
           
 ResourceEnvRef injectionTarget(String className, String property)
           
 ResourceEnvRef lookup(String lookupName)
           
 ResourceEnvRef mappedName(String mappedName)
           
 ResourceEnvRef name(String resourceEnvRefName)
           
 void setDescriptions(Text[] text)
           
 void setId(String value)
           
 void setLookupName(String lookupName)
           
 void setMappedName(String value)
           
 void setName(String name)
           
 void setResourceEnvRefName(String value)
           
 void setResourceEnvRefType(String value)
           
 void setType(String type)
           
 String toString()
           
 ResourceEnvRef type(Class<?> resourceEnvRefType)
           
 ResourceEnvRef type(String resourceEnvRefType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

description

protected TextMap description

resourceEnvRefName

protected String resourceEnvRefName

resourceEnvRefType

protected String resourceEnvRefType

mappedName

protected String mappedName

lookupName

protected String lookupName

injectionTarget

protected Set<InjectionTarget> injectionTarget

id

protected String id
Constructor Detail

ResourceEnvRef

public ResourceEnvRef()

ResourceEnvRef

public ResourceEnvRef(String resourceEnvRefName,
                      String resourceEnvRefType)

ResourceEnvRef

public ResourceEnvRef(String resourceEnvRefName,
                      Class resourceEnvRefType)
Method Detail

name

public ResourceEnvRef name(String resourceEnvRefName)

type

public ResourceEnvRef type(String resourceEnvRefType)

type

public ResourceEnvRef type(Class<?> resourceEnvRefType)

mappedName

public ResourceEnvRef mappedName(String mappedName)

lookup

public ResourceEnvRef lookup(String lookupName)

injectionTarget

public ResourceEnvRef injectionTarget(String className,
                                      String property)

injectionTarget

public ResourceEnvRef injectionTarget(Class<?> clazz,
                                      String property)

getName

public String getName()
Specified by:
getName in interface JndiReference

getKey

public String getKey()
Description copied from interface: Keyable
Gets the immutable key for this object.

Specified by:
getKey in interface Keyable<String>
Returns:
gets the immutable key for this object

getType

public String getType()
Specified by:
getType in interface JndiReference

setName

public void setName(String name)
Specified by:
setName in interface JndiReference

setType

public void setType(String type)
Specified by:
setType in interface JndiReference

getDescriptions

public Text[] getDescriptions()

setDescriptions

public void setDescriptions(Text[] text)

getDescription

public String getDescription()

getResourceEnvRefName

public String getResourceEnvRefName()

setResourceEnvRefName

public void setResourceEnvRefName(String value)

getResourceEnvRefType

public String getResourceEnvRefType()

setResourceEnvRefType

public void setResourceEnvRefType(String value)

getMappedName

public String getMappedName()
Specified by:
getMappedName in interface JndiReference

setMappedName

public void setMappedName(String value)
Specified by:
setMappedName in interface JndiReference

getLookupName

public String getLookupName()
Specified by:
getLookupName in interface JndiReference

setLookupName

public void setLookupName(String lookupName)
Specified by:
setLookupName in interface JndiReference

getInjectionTarget

public Set<InjectionTarget> getInjectionTarget()
Specified by:
getInjectionTarget in interface Injectable

getId

public String getId()

setId

public void setId(String value)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 1999-2013 The Apache Software Foundation. All Rights Reserved.