|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.config.inject.DecoratorBean<T>
@Module public class DecoratorBean<T>
DecoratorBean represents a Java decorator
Constructor Summary | |
---|---|
DecoratorBean(InjectManager beanManager,
java.lang.Class<T> type)
|
Method Summary | |
---|---|
void |
bind()
|
T |
create(CreationalContext<T> creationalContext)
Creates a new instance for the Contextual's type. |
void |
destroy(T instance,
CreationalContext<T> env)
Call destroy |
java.lang.Class<?> |
getBeanClass()
Returns the bean class. |
java.util.Set<java.lang.reflect.Type> |
getDecoratedTypes()
Returns the types for the decorated |
InjectionPoint |
getDelegateInjectionPoint()
|
java.util.Set<java.lang.annotation.Annotation> |
getDelegateQualifiers()
Returns the bindings for the delegated object |
java.lang.reflect.Type |
getDelegateType()
Returns the type of the delegated object |
java.util.Set<InjectionPoint> |
getInjectionPoints()
Returns the set of injection points, for validation. |
java.lang.String |
getName()
Returns the bean's name or null if the bean does not have a primary name. |
java.util.Set<java.lang.annotation.Annotation> |
getQualifiers()
Returns the bean's binding types |
java.lang.Class<? extends java.lang.annotation.Annotation> |
getScope()
Returns the bean's scope |
java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> |
getStereotypes()
Returns the bean's deployment type |
java.util.Set<java.lang.reflect.Type> |
getTypes()
Returns the types that the bean implements |
T |
instantiate()
Instantiate the bean. |
protected void |
introspect()
|
protected void |
introspectBindingTypes(java.lang.annotation.Annotation[] annList)
|
boolean |
isAlternative()
Returns true if the bean can be null |
boolean |
isNullable()
Returns true if the bean can be null |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DecoratorBean(InjectManager beanManager, java.lang.Class<T> type)
Method Detail |
---|
public java.util.Set<java.lang.annotation.Annotation> getQualifiers()
getQualifiers
in interface Bean<T>
public java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getStereotypes()
getStereotypes
in interface Bean<T>
public java.lang.String getName()
getName
in interface Bean<T>
public boolean isNullable()
isNullable
in interface Bean<T>
public boolean isAlternative()
isAlternative
in interface Bean<T>
public java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
getScope
in interface Bean<T>
public java.util.Set<java.lang.reflect.Type> getTypes()
getTypes
in interface Bean<T>
public java.util.Set<java.lang.reflect.Type> getDecoratedTypes()
getDecoratedTypes
in interface Decorator<T>
public T create(CreationalContext<T> creationalContext)
Contextual
create
in interface Contextual<T>
creationalContext
- the creation context used to support circular
references.
public java.util.Set<InjectionPoint> getInjectionPoints()
getInjectionPoints
in interface Bean<T>
public java.lang.Class<?> getBeanClass()
Bean
getBeanClass
in interface Bean<T>
public java.lang.reflect.Type getDelegateType()
getDelegateType
in interface Decorator<T>
public java.util.Set<java.lang.annotation.Annotation> getDelegateQualifiers()
getDelegateQualifiers
in interface Decorator<T>
public InjectionPoint getDelegateInjectionPoint()
public void bind()
protected void introspect()
protected void introspectBindingTypes(java.lang.annotation.Annotation[] annList)
public T instantiate()
public void destroy(T instance, CreationalContext<T> env)
destroy
in interface Contextual<T>
instance
- the instance to destroypublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |