|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.config.program.ConfigProgram
com.caucho.config.types.ResourceGroupConfig
com.caucho.config.types.ResourceRef
public class ResourceRef
Configuration for the init-param pattern.
| Constructor Summary | |
|---|---|
ResourceRef()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.caucho.config.types.ResourceGroupConfig |
|---|
addInjectionTarget, createObject, getJndiClassLoader, getLookupName, getProgram, getProgram, inferTypeFromInjection, inject, isProgram, setDefaultInjectionClass, setJndiClassLoader, setLookupName, setProgram |
| Methods inherited from class com.caucho.config.program.ConfigProgram |
|---|
addProgram, bind, compareTo, configure, configure, configure, create, create, create, getDeclaringClass, getName, getPriority, getQName, init |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.caucho.naming.ObjectProxy |
|---|
createObject |
| Constructor Detail |
|---|
public ResourceRef()
| Method Detail |
|---|
public void setId(java.lang.String id)
setId in class ResourceGroupConfig
public void setConfigLocation(java.lang.String filename,
int line)
setConfigLocation in class ResourceGroupConfigpublic void setDescription(java.lang.String description)
setDescription in class ResourceGroupConfigpublic 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 ResourceGroupConfigjava.lang.Exceptionpublic void deploy()
deploy in class ResourceGroupConfigpublic java.lang.Object getValue()
getValue in class ResourceGroupConfig
public void validate()
throws ConfigException
validate in interface ValidatorConfigExceptionpublic ConfigException error(java.lang.String msg)
error in class ResourceGroupConfigpublic java.lang.String toString()
toString in class ResourceGroupConfig
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||