public abstract class ResourceGroupConfig extends ConfigProgram implements ObjectProxy
Constructor and Description |
---|
ResourceGroupConfig() |
Modifier and Type | Method and Description |
---|---|
void |
addInjectionTarget(InjectionTarget injectionTarget)
Adds an injection-target
|
java.lang.Object |
createObject(java.util.Hashtable<?,?> env)
Creates the object from the proxy.
|
void |
deploy() |
protected ConfigException |
error(java.lang.String msg) |
java.lang.ClassLoader |
getJndiClassLoader() |
java.lang.String |
getLookupName() |
ConfigProgram |
getProgram() |
ConfigProgram |
getProgram(java.lang.Class<?> cl) |
java.lang.Object |
getValue() |
protected java.lang.Class<?> |
inferTypeFromInjection() |
void |
init()
Registers any injection targets
|
<T> void |
inject(T bean,
CreationalContext<T> env)
Configures the bean using the current program.
|
boolean |
isProgram() |
void |
setConfigLocation(java.lang.String filename,
int line)
Sets the configuration location.
|
void |
setDefaultInjectionClass(java.lang.String className) |
void |
setDescription(java.lang.String description)
Sets the description.
|
void |
setId(java.lang.String id) |
void |
setJndiClassLoader(java.lang.ClassLoader loader) |
void |
setLookupName(java.lang.String lookupName)
Sets the lookup-name
|
void |
setProgram(boolean isProgram) |
java.lang.String |
toString() |
addProgram, bind, compareTo, configure, configure, configure, create, create, create, getDeclaringClass, getName, getPriority, getQName, init
public void setDefaultInjectionClass(java.lang.String className)
public void setId(java.lang.String id)
public void setConfigLocation(java.lang.String filename, int line)
public void setDescription(java.lang.String description)
public void addInjectionTarget(InjectionTarget injectionTarget)
public void setLookupName(java.lang.String lookupName)
public java.lang.String getLookupName()
public void setProgram(boolean isProgram)
public boolean isProgram()
public void setJndiClassLoader(java.lang.ClassLoader loader)
public java.lang.ClassLoader getJndiClassLoader()
@PostConstruct public void init() throws java.lang.Exception
java.lang.Exception
public void deploy()
public ConfigProgram getProgram()
public ConfigProgram getProgram(java.lang.Class<?> cl)
protected java.lang.Class<?> inferTypeFromInjection()
public <T> void inject(T bean, CreationalContext<T> env)
inject
in class ConfigProgram
bean
- the bean to configureenv
- the Config environmentpublic java.lang.Object createObject(java.util.Hashtable<?,?> env) throws javax.naming.NamingException
ObjectProxy
createObject
in interface ObjectProxy
javax.naming.NamingException
public java.lang.Object getValue()
protected ConfigException error(java.lang.String msg)
public java.lang.String toString()
toString
in class java.lang.Object