org.apache.openejb.jee
Class ResourceRef

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

public class ResourceRef
extends Object
implements JndiReference

javaee6.xsd

Java class for resource-refType complex type.

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

 <complexType name="resource-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="res-ref-name" type="{http://java.sun.com/xml/ns/javaee}jndi-nameType"/>
         <element name="res-type" type="{http://java.sun.com/xml/ns/javaee}fully-qualified-classType" minOccurs="0"/>
         <element name="res-auth" type="{http://java.sun.com/xml/ns/javaee}res-authType" minOccurs="0"/>
         <element name="res-sharing-scope" type="{http://java.sun.com/xml/ns/javaee}res-sharing-scopeType" 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 origin
           
protected  ResAuth resAuth
           
protected  String resRefName
           
protected  ResSharingScope resSharingScope
           
protected  String resType
           
 
Constructor Summary
ResourceRef()
           
ResourceRef(String resRefName, String resType)
           
ResourceRef(String resRefName, String resType, ResAuth resAuth, ResSharingScope resSharingScope)
           
 
Method Summary
 ResourceRef auth(ResAuth resAuth)
           
 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 getOrigin()
           
 ResAuth getResAuth()
           
 String getResRefName()
           
 ResSharingScope getResSharingScope()
           
 String getResType()
           
 String getType()
           
 ResourceRef injectionTarget(Class<?> clazz, String property)
           
 ResourceRef injectionTarget(String className, String property)
           
 ResourceRef lookup(String lookupName)
           
 ResourceRef mappedName(String mappedName)
           
 ResourceRef name(String resRefName)
           
 void setDescriptions(Text[] text)
           
 void setId(String value)
           
 void setLookupName(String lookupName)
           
 void setMappedName(String value)
           
 void setName(String name)
           
 void setOrigin(String origin)
           
 void setResAuth(ResAuth value)
           
 void setResRefName(String value)
           
 void setResSharingScope(ResSharingScope value)
           
 void setResType(String value)
           
 void setType(String type)
           
 String toString()
           
 ResourceRef type(String resType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

description

protected TextMap description

resRefName

protected String resRefName

resType

protected String resType

resAuth

protected ResAuth resAuth

resSharingScope

protected ResSharingScope resSharingScope

mappedName

protected String mappedName

lookupName

protected String lookupName

injectionTarget

protected Set<InjectionTarget> injectionTarget

id

protected String id

origin

protected String origin
Constructor Detail

ResourceRef

public ResourceRef()

ResourceRef

public ResourceRef(String resRefName,
                   String resType)

ResourceRef

public ResourceRef(String resRefName,
                   String resType,
                   ResAuth resAuth,
                   ResSharingScope resSharingScope)
Method Detail

name

public ResourceRef name(String resRefName)

type

public ResourceRef type(String resType)

auth

public ResourceRef auth(ResAuth resAuth)

mappedName

public ResourceRef mappedName(String mappedName)

lookup

public ResourceRef lookup(String lookupName)

injectionTarget

public ResourceRef injectionTarget(String className,
                                   String property)

injectionTarget

public ResourceRef 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()

getResRefName

public String getResRefName()

setResRefName

public void setResRefName(String value)

getResType

public String getResType()

setResType

public void setResType(String value)

getResAuth

public ResAuth getResAuth()

setResAuth

public void setResAuth(ResAuth value)

getResSharingScope

public ResSharingScope getResSharingScope()

setResSharingScope

public void setResSharingScope(ResSharingScope 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)

getOrigin

public String getOrigin()

setOrigin

public void setOrigin(String origin)

toString

public String toString()
Overrides:
toString in class Object


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