com.caucho.config.types
Class ResourceGroupConfig

java.lang.Object
  extended by com.caucho.config.program.ConfigProgram
      extended by com.caucho.config.types.ResourceGroupConfig
All Implemented Interfaces:
ObjectProxy, java.lang.Comparable<ConfigProgram>
Direct Known Subclasses:
BaseRef, DataSourceRef, EnvEntry, ResourceRef

public abstract class ResourceGroupConfig
extends ConfigProgram
implements ObjectProxy

Configuration for the resource group


Constructor Summary
ResourceGroupConfig()
           
 
Method Summary
 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()
           
 
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
 

Constructor Detail

ResourceGroupConfig

public ResourceGroupConfig()
Method Detail

setDefaultInjectionClass

public void setDefaultInjectionClass(java.lang.String className)

setId

public void setId(java.lang.String id)

setConfigLocation

public void setConfigLocation(java.lang.String filename,
                              int line)
Sets the configuration location.


setDescription

public void setDescription(java.lang.String description)
Sets the description.


addInjectionTarget

public void addInjectionTarget(InjectionTarget injectionTarget)
Adds an injection-target


setLookupName

public void setLookupName(java.lang.String lookupName)
Sets the lookup-name


getLookupName

public java.lang.String getLookupName()

setProgram

public void setProgram(boolean isProgram)

isProgram

public boolean isProgram()

setJndiClassLoader

public void setJndiClassLoader(java.lang.ClassLoader loader)

getJndiClassLoader

public java.lang.ClassLoader getJndiClassLoader()

init

@PostConstruct
public void init()
          throws java.lang.Exception
Registers any injection targets

Throws:
java.lang.Exception

deploy

public void deploy()

getProgram

public ConfigProgram getProgram()

getProgram

public ConfigProgram getProgram(java.lang.Class<?> cl)

inferTypeFromInjection

protected java.lang.Class<?> inferTypeFromInjection()

inject

public <T> void inject(T bean,
                       CreationalContext<T> env)
Configures the bean using the current program.

Specified by:
inject in class ConfigProgram
Parameters:
bean - the bean to configure
env - the Config environment

createObject

public java.lang.Object createObject(java.util.Hashtable<?,?> env)
                              throws javax.naming.NamingException
Description copied from interface: ObjectProxy
Creates the object from the proxy.

Specified by:
createObject in interface ObjectProxy
Returns:
the object named by the proxy.
Throws:
javax.naming.NamingException

getValue

public java.lang.Object getValue()

error

protected ConfigException error(java.lang.String msg)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object