public class ResourceRef extends 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 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 and Description |
|---|
ResourceRef() |
ResourceRef(String resRefName,
String resType) |
ResourceRef(String resRefName,
String resType,
ResAuth resAuth,
ResSharingScope resSharingScope) |
protected TextMap description
protected String resRefName
protected String resType
protected ResAuth resAuth
protected ResSharingScope resSharingScope
protected String mappedName
protected String lookupName
protected Set<InjectionTarget> injectionTarget
protected String id
protected String origin
public ResourceRef()
public ResourceRef(String resRefName, String resType, ResAuth resAuth, ResSharingScope resSharingScope)
public ResourceRef name(String resRefName)
public ResourceRef type(String resType)
public ResourceRef auth(ResAuth resAuth)
public ResourceRef mappedName(String mappedName)
public ResourceRef lookup(String lookupName)
public ResourceRef injectionTarget(String className, String property)
public ResourceRef injectionTarget(Class<?> clazz, String property)
public String getName()
getName in interface JndiReferencepublic String getKey()
Keyablepublic String getType()
getType in interface JndiReferencepublic void setName(String name)
setName in interface JndiReferencepublic void setType(String type)
setType in interface JndiReferencepublic Text[] getDescriptions()
public void setDescriptions(Text[] text)
public String getDescription()
public String getResRefName()
public void setResRefName(String value)
public String getResType()
public void setResType(String value)
public ResAuth getResAuth()
public void setResAuth(ResAuth value)
public ResSharingScope getResSharingScope()
public void setResSharingScope(ResSharingScope value)
public String getMappedName()
getMappedName in interface JndiReferencepublic void setMappedName(String value)
setMappedName in interface JndiReferencepublic String getLookupName()
getLookupName in interface JndiReferencepublic void setLookupName(String lookupName)
setLookupName in interface JndiReferencepublic Set<InjectionTarget> getInjectionTarget()
getInjectionTarget in interface Injectablepublic String getId()
public void setId(String value)
public String getOrigin()
public void setOrigin(String origin)
Copyright © 1999-2014 The Apache Software Foundation. All Rights Reserved.