public class ResourceRef extends ResourceGroupConfig implements Validator, ObjectProxy
Constructor and Description |
---|
ResourceRef() |
Modifier and Type | Method and Description |
---|---|
void |
deploy() |
ConfigException |
error(java.lang.String msg) |
ConfigProgram |
getInit()
Gets the init program;
|
InjectionTarget |
getInjectionTarget()
Gets the injection-target
|
java.lang.String |
getResRefName()
Gets the name
|
java.lang.Class<?> |
getResType()
Gets the type;
|
java.lang.Object |
getValue() |
void |
init()
Initialize the resource.
|
void |
setClassName(java.lang.Class<?> type)
Sets the type
|
void |
setConfigLocation(java.lang.String filename,
int line)
Sets the configuration location.
|
void |
setDescription(java.lang.String description)
Sets the description.
|
void |
setId(java.lang.String id)
Sets the id
|
void |
setInit(ConfigProgram init)
Sets the init program
|
void |
setInitParam(InitParam initParam)
Sets an init-parameter
|
void |
setInjectionTarget(InjectionTarget injectionTarget)
Sets the injection-target
|
void |
setResAuth(java.lang.String auth)
Sets the auth
|
void |
setResRefName(java.lang.String name)
Sets the name
|
void |
setResSharingScope(java.lang.String share)
Sets the sharing scope
|
void |
setResType(java.lang.Class<?> type)
Sets the type
|
java.lang.String |
toString() |
void |
validate()
Validates the resource-ref, i.e.
|
addInjectionTarget, createObject, getJndiClassLoader, getLookupName, getProgram, getProgram, inferTypeFromInjection, inject, isProgram, setDefaultInjectionClass, setJndiClassLoader, setLookupName, setProgram
addProgram, bind, compareTo, configure, configure, configure, create, create, create, getDeclaringClass, getName, getPriority, getQName, init
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
createObject
public void setId(java.lang.String id)
setId
in class ResourceGroupConfig
public void setConfigLocation(java.lang.String filename, int line)
setConfigLocation
in class ResourceGroupConfig
public void setDescription(java.lang.String description)
setDescription
in class ResourceGroupConfig
public void setInjectionTarget(InjectionTarget injectionTarget)
public void setResRefName(java.lang.String name)
public java.lang.String getResRefName()
public void setResType(java.lang.Class<?> type)
public void setResAuth(java.lang.String auth)
public void setResSharingScope(java.lang.String share)
public void setClassName(java.lang.Class<?> type)
public InjectionTarget getInjectionTarget()
public java.lang.Class<?> getResType()
public void setInit(ConfigProgram init)
public ConfigProgram getInit()
public void setInitParam(InitParam initParam)
@PostConstruct public void init() throws java.lang.Exception
init
in class ResourceGroupConfig
java.lang.Exception
public void deploy()
deploy
in class ResourceGroupConfig
public java.lang.Object getValue()
getValue
in class ResourceGroupConfig
public void validate() throws ConfigException
validate
in interface Validator
ConfigException
public ConfigException error(java.lang.String msg)
error
in class ResourceGroupConfig
public java.lang.String toString()
toString
in class ResourceGroupConfig