public class ResourceRef extends java.lang.Object implements JndiReference
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>
Modifier and Type | Field and Description |
---|---|
protected TextMap |
description |
protected java.lang.String |
id |
protected java.util.Set<InjectionTarget> |
injectionTarget |
protected java.lang.String |
lookupName |
protected java.lang.String |
mappedName |
protected java.lang.String |
origin |
protected ResAuth |
resAuth |
protected java.lang.String |
resRefName |
protected ResSharingScope |
resSharingScope |
protected java.lang.String |
resType |
Constructor and Description |
---|
ResourceRef() |
ResourceRef(java.lang.String resRefName,
java.lang.String resType) |
ResourceRef(java.lang.String resRefName,
java.lang.String resType,
ResAuth resAuth,
ResSharingScope resSharingScope) |
Modifier and Type | Method and Description |
---|---|
ResourceRef |
auth(ResAuth resAuth) |
java.lang.String |
getDescription() |
Text[] |
getDescriptions() |
java.lang.String |
getId() |
java.util.Set<InjectionTarget> |
getInjectionTarget() |
java.lang.String |
getKey()
Gets the immutable key for this object.
|
java.lang.String |
getLookupName() |
java.lang.String |
getMappedName() |
java.lang.String |
getName() |
java.lang.String |
getOrigin() |
ResAuth |
getResAuth() |
java.lang.String |
getResRefName() |
ResSharingScope |
getResSharingScope() |
java.lang.String |
getResType() |
java.lang.String |
getType() |
ResourceRef |
injectionTarget(java.lang.Class<?> clazz,
java.lang.String property) |
ResourceRef |
injectionTarget(java.lang.String className,
java.lang.String property) |
ResourceRef |
lookup(java.lang.String lookupName) |
ResourceRef |
mappedName(java.lang.String mappedName) |
ResourceRef |
name(java.lang.String resRefName) |
void |
setDescriptions(Text[] text) |
void |
setId(java.lang.String value) |
void |
setLookupName(java.lang.String lookupName) |
void |
setMappedName(java.lang.String value) |
void |
setName(java.lang.String name) |
void |
setOrigin(java.lang.String origin) |
void |
setResAuth(ResAuth value) |
void |
setResRefName(java.lang.String value) |
void |
setResSharingScope(ResSharingScope value) |
void |
setResType(java.lang.String value) |
void |
setType(java.lang.String type) |
java.lang.String |
toString() |
ResourceRef |
type(java.lang.String resType) |
protected TextMap description
protected java.lang.String resRefName
protected java.lang.String resType
protected ResAuth resAuth
protected ResSharingScope resSharingScope
protected java.lang.String mappedName
protected java.lang.String lookupName
protected java.util.Set<InjectionTarget> injectionTarget
protected java.lang.String id
protected java.lang.String origin
public ResourceRef()
public ResourceRef(java.lang.String resRefName, java.lang.String resType)
public ResourceRef(java.lang.String resRefName, java.lang.String resType, ResAuth resAuth, ResSharingScope resSharingScope)
public ResourceRef name(java.lang.String resRefName)
public ResourceRef type(java.lang.String resType)
public ResourceRef auth(ResAuth resAuth)
public ResourceRef mappedName(java.lang.String mappedName)
public ResourceRef lookup(java.lang.String lookupName)
public ResourceRef injectionTarget(java.lang.String className, java.lang.String property)
public ResourceRef injectionTarget(java.lang.Class<?> clazz, java.lang.String property)
public java.lang.String getName()
getName
in interface JndiReference
public java.lang.String getKey()
Keyable
public java.lang.String getType()
getType
in interface JndiReference
public void setName(java.lang.String name)
setName
in interface JndiReference
public void setType(java.lang.String type)
setType
in interface JndiReference
public Text[] getDescriptions()
public void setDescriptions(Text[] text)
public java.lang.String getDescription()
public java.lang.String getResRefName()
public void setResRefName(java.lang.String value)
public java.lang.String getResType()
public void setResType(java.lang.String value)
public ResAuth getResAuth()
public void setResAuth(ResAuth value)
public ResSharingScope getResSharingScope()
public void setResSharingScope(ResSharingScope value)
public java.lang.String getMappedName()
getMappedName
in interface JndiReference
public void setMappedName(java.lang.String value)
setMappedName
in interface JndiReference
public java.lang.String getLookupName()
getLookupName
in interface JndiReference
public void setLookupName(java.lang.String lookupName)
setLookupName
in interface JndiReference
public java.util.Set<InjectionTarget> getInjectionTarget()
getInjectionTarget
in interface Injectable
public java.lang.String getId()
public void setId(java.lang.String value)
public java.lang.String getOrigin()
public void setOrigin(java.lang.String origin)
public java.lang.String toString()
toString
in class java.lang.Object