com.caucho.config.inject
Class InjectionTargetBuilder<X>

java.lang.Object
  extended by com.caucho.config.inject.InjectionTargetBuilder<X>
All Implemented Interfaces:
InjectionTarget<X>, Producer<X>

@Module
public class InjectionTargetBuilder<X>
extends java.lang.Object
implements InjectionTarget<X>

SimpleBean represents a POJO Java bean registered as a WebBean.


Constructor Summary
InjectionTargetBuilder(InjectManager cdiManager, AnnotatedType<X> beanType)
           
InjectionTargetBuilder(InjectManager cdiManager, AnnotatedType<X> beanType, Bean<X> bean)
           
 
Method Summary
 void bind()
           
 void dispose(X instance)
          Dispose the bean.
 AnnotatedType<X> getAnnotatedType()
           
protected  InjectManager getBeanManager()
           
protected  java.lang.Object getHandle()
           
 java.util.Set<InjectionPoint> getInjectionPoints()
          Returns the injection points.
 java.lang.String getPassivationId()
           
 ConfigProgram[] getPostConstructProgram()
           
 void inject(X instance, CreationalContext<X> env)
          Inject the bean.
static void introspectInit(java.util.ArrayList<ConfigProgram> initList, AnnotatedType<?> type)
           
static void introspectInit(java.util.ArrayList<ConfigProgram> initList, java.lang.Class<?> type)
           
static boolean isValid(java.lang.Class<?> type)
          Checks for validity for classpath scanning.
static boolean isValidConstructor(java.lang.Class<?> type)
           
 void postConstruct(X instance)
          PostConstruct initialization
 void preDestroy(X instance)
          Call pre-destroy
 X produce(CreationalContext<X> env)
          Instantiate the bean.
 void setGenerateInterception(boolean isEnable)
           
 void setPostConstructProgram(ConfigProgram[] program)
           
 java.lang.String toString()
           
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InjectionTargetBuilder

public InjectionTargetBuilder(InjectManager cdiManager,
                              AnnotatedType<X> beanType,
                              Bean<X> bean)

InjectionTargetBuilder

public InjectionTargetBuilder(InjectManager cdiManager,
                              AnnotatedType<X> beanType)
Method Detail

getBeanManager

protected InjectManager getBeanManager()

getAnnotatedType

public AnnotatedType<X> getAnnotatedType()

getInjectionPoints

public java.util.Set<InjectionPoint> getInjectionPoints()
Returns the injection points.

Specified by:
getInjectionPoints in interface Producer<X>

validate

public void validate()

bind

public void bind()

setGenerateInterception

public void setGenerateInterception(boolean isEnable)

produce

public X produce(CreationalContext<X> env)
Description copied from interface: Producer
Instantiate the bean.

Specified by:
produce in interface Producer<X>

inject

public void inject(X instance,
                   CreationalContext<X> env)
Description copied from interface: InjectionTarget
Inject the bean.

Specified by:
inject in interface InjectionTarget<X>

postConstruct

public void postConstruct(X instance)
Description copied from interface: InjectionTarget
PostConstruct initialization

Specified by:
postConstruct in interface InjectionTarget<X>

getPostConstructProgram

public ConfigProgram[] getPostConstructProgram()

setPostConstructProgram

public void setPostConstructProgram(ConfigProgram[] program)

preDestroy

public void preDestroy(X instance)
Call pre-destroy

Specified by:
preDestroy in interface InjectionTarget<X>

dispose

public void dispose(X instance)
Description copied from interface: Producer
Dispose the bean.

Specified by:
dispose in interface Producer<X>

getHandle

protected java.lang.Object getHandle()

getPassivationId

public java.lang.String getPassivationId()

introspectInit

public static void introspectInit(java.util.ArrayList<ConfigProgram> initList,
                                  AnnotatedType<?> type)
                           throws ConfigException
Throws:
ConfigException

introspectInit

public static void introspectInit(java.util.ArrayList<ConfigProgram> initList,
                                  java.lang.Class<?> type)
                           throws ConfigException
Throws:
ConfigException

isValid

public static boolean isValid(java.lang.Class<?> type)
Checks for validity for classpath scanning.


isValidConstructor

public static boolean isValidConstructor(java.lang.Class<?> type)

toString

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