com.caucho.config.j2ee
Class PostConstructProgram

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

@Module
public class PostConstructProgram
extends ConfigProgram


Constructor Summary
PostConstructProgram(AnnotatedMethod<?> annMethod, java.lang.reflect.Method init)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 AnnotatedMethod<?> getAnnotatedMethod()
           
 java.lang.Class<?> getDeclaringClass()
          Returns the declaring class.
 java.lang.String getName()
          Returns the name.
 int hashCode()
           
<T> void
inject(T bean, CreationalContext<T> env)
          Configures the bean using the current program.
protected  void introspect()
           
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.config.program.ConfigProgram
addProgram, bind, compareTo, configure, configure, configure, create, create, create, getPriority, getQName, init
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PostConstructProgram

public PostConstructProgram(AnnotatedMethod<?> annMethod,
                            java.lang.reflect.Method init)
Method Detail

getDeclaringClass

public java.lang.Class<?> getDeclaringClass()
Description copied from class: ConfigProgram
Returns the declaring class.

Overrides:
getDeclaringClass in class ConfigProgram

getName

public java.lang.String getName()
Description copied from class: ConfigProgram
Returns the name.

Overrides:
getName in class ConfigProgram

getAnnotatedMethod

public AnnotatedMethod<?> getAnnotatedMethod()

introspect

protected void introspect()

inject

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

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

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

toString

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