com.caucho.config.program
Class ExprProgram

java.lang.Object
  extended by com.caucho.config.program.ConfigProgram
      extended by com.caucho.config.program.ExprProgram
All Implemented Interfaces:
java.lang.Comparable<ConfigProgram>

public class ExprProgram
extends ConfigProgram

A saved program for configuring an object.


Constructor Summary
ExprProgram(Expr expr)
           
 
Method Summary
<T> T
create(ConfigType<T> type, CreationalContext<T> env)
           
<T> void
inject(T bean, CreationalContext<T> createContext)
          Configures the bean using the current program.
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.config.program.ConfigProgram
addProgram, bind, compareTo, configure, configure, configure, 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

ExprProgram

public ExprProgram(Expr expr)
Method Detail

create

public <T> T create(ConfigType<T> type,
                    CreationalContext<T> env)
         throws ConfigException
Overrides:
create in class ConfigProgram
Throws:
ConfigException

inject

public <T> void inject(T bean,
                       CreationalContext<T> createContext)
Description copied from class: ConfigProgram
Configures the bean using the current program.

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

toString

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