com.caucho.config.types
Class ReferenceConfig

java.lang.Object
  extended by com.caucho.config.types.ReferenceConfig

public class ReferenceConfig
extends java.lang.Object

Configuration for the init-param pattern.


Constructor Summary
ReferenceConfig()
           
 
Method Summary
 void addInitParam(InitParam initParam)
          Sets an init param.
protected  void configure(java.lang.Object obj)
           
 java.lang.Class getFactory()
          Gets the object factory;
 ContainerProgram getInit()
          Gets the init program;
 java.lang.String getJndiName()
          Gets the name
 void init()
          Initialize the resource.
 void setFactory(java.lang.Class factory)
          Sets the object factory;
 void setInit(ContainerProgram init)
          Sets the init program
 void setJndiName(java.lang.String name)
          Sets the name
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReferenceConfig

public ReferenceConfig()
Method Detail

setJndiName

public void setJndiName(java.lang.String name)
Sets the name


getJndiName

public java.lang.String getJndiName()
Gets the name


getFactory

public java.lang.Class getFactory()
Gets the object factory;


setFactory

public void setFactory(java.lang.Class factory)
Sets the object factory;


setInit

public void setInit(ContainerProgram init)
Sets the init program


getInit

public ContainerProgram getInit()
Gets the init program;


addInitParam

public void addInitParam(InitParam initParam)
Sets an init param.


init

@PostConstruct
public void init()
          throws java.lang.Exception
Initialize the resource.

Throws:
java.lang.Exception

configure

protected void configure(java.lang.Object obj)
                  throws java.lang.Throwable
Throws:
java.lang.Throwable

toString

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