com.caucho.config.types
Class EnvEntry

java.lang.Object
  extended by com.caucho.config.program.ConfigProgram
      extended by com.caucho.config.types.ResourceGroupConfig
          extended by com.caucho.config.types.EnvEntry
All Implemented Interfaces:
Validator, ObjectProxy, java.lang.Comparable<ConfigProgram>

public class EnvEntry
extends ResourceGroupConfig
implements Validator

Configuration for the env-entry pattern.


Constructor Summary
EnvEntry()
           
 
Method Summary
 void deploy()
           
 java.lang.String getEnvEntryName()
          Gets the env-entry-name
 java.lang.Class<?> getEnvEntryType()
          Gets the env-entry-type
 java.lang.String getEnvEntryValue()
          Gets the env-entry-value
 java.lang.Object getValue()
           
 void init()
          Gets the env-entry-value
<T> void
inject(T bean, CreationalContext<T> env)
          Configures the bean using the current program.
 void setEnvEntryName(java.lang.String name)
          Sets the env-entry-name
 void setEnvEntryType(java.lang.Class<?> type)
          Sets the env-entry-type
 void setEnvEntryValue(RawString value)
          Sets the env-entry-value
 void setId(java.lang.String id)
           
 java.lang.String toString()
           
 void validate()
          Validates the env-entry, i.e.
 
Methods inherited from class com.caucho.config.types.ResourceGroupConfig
addInjectionTarget, createObject, error, getJndiClassLoader, getLookupName, getProgram, getProgram, inferTypeFromInjection, isProgram, setConfigLocation, setDefaultInjectionClass, setDescription, 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
 

Constructor Detail

EnvEntry

public EnvEntry()
Method Detail

setId

public void setId(java.lang.String id)
Overrides:
setId in class ResourceGroupConfig

setEnvEntryName

public void setEnvEntryName(java.lang.String name)
Sets the env-entry-name


getEnvEntryName

public java.lang.String getEnvEntryName()
Gets the env-entry-name


setEnvEntryType

public void setEnvEntryType(java.lang.Class<?> type)
Sets the env-entry-type


getEnvEntryType

public java.lang.Class<?> getEnvEntryType()
Gets the env-entry-type


setEnvEntryValue

public void setEnvEntryValue(RawString value)
Sets the env-entry-value


getEnvEntryValue

public java.lang.String getEnvEntryValue()
Gets the env-entry-value


init

@PostConstruct
public void init()
          throws java.lang.Exception
Gets the env-entry-value

Overrides:
init in class ResourceGroupConfig
Throws:
java.lang.Exception

inject

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

Overrides:
inject in class ResourceGroupConfig
Parameters:
bean - the bean to configure
env - the Config environment

getValue

public java.lang.Object getValue()
Overrides:
getValue in class ResourceGroupConfig

deploy

public void deploy()
Overrides:
deploy in class ResourceGroupConfig

validate

public void validate()
              throws ConfigException
Validates the env-entry, i.e. checking that it exists in JNDI.

Specified by:
validate in interface Validator
Throws:
ConfigException

toString

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