public class InterceptorBean<X> extends InterceptorRuntimeBean<X>
Constructor and Description |
---|
InterceptorBean(java.lang.Class<X> type) |
InterceptorBean(InjectManager beanManager,
java.lang.Class<X> type) |
Modifier and Type | Method and Description |
---|---|
X |
create(CreationalContext<X> creationalContext)
Creates a new instance for the Contextual's type.
|
void |
destroy(X instance,
CreationalContext<X> env)
Destroys a bean instance
|
AnnotatedType |
getAnnotatedType() |
Bean<X> |
getBean() |
java.lang.Class<?> |
getBeanClass()
Returns the bean class.
|
java.util.Set<InjectionPoint> |
getInjectionPoints()
Returns the set of injection points, for validation.
|
java.util.Set<java.lang.annotation.Annotation> |
getInterceptorBindings()
Returns the bean's binding types
|
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 bindings
|
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 stereotypes
|
java.util.Set<java.lang.reflect.Type> |
getTypes()
Returns the types that the bean implements
|
void |
init() |
protected void |
introspect() |
protected void |
introspectQualifiers(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
|
boolean |
isPassivationCapable()
Returns true if the bean is serializable
|
java.lang.String |
toString() |
equals, getMethod, getParent, getType, hashCode, intercept, intercepts, isAllowParent
public InterceptorBean(InjectManager beanManager, java.lang.Class<X> type)
public InterceptorBean(java.lang.Class<X> type)
public Bean<X> getBean()
getBean
in class InterceptorRuntimeBean<X>
public java.util.Set<java.lang.annotation.Annotation> getQualifiers()
getQualifiers
in interface Bean<X>
getQualifiers
in class InterceptorRuntimeBean<X>
public java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getStereotypes()
getStereotypes
in interface Bean<X>
getStereotypes
in class InterceptorRuntimeBean<X>
public java.lang.String getName()
public boolean isNullable()
isNullable
in interface Bean<X>
isNullable
in class InterceptorRuntimeBean<X>
public boolean isAlternative()
isAlternative
in interface Bean<X>
isAlternative
in class InterceptorRuntimeBean<X>
public boolean isPassivationCapable()
public java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
public java.util.Set<java.lang.reflect.Type> getTypes()
public java.lang.Class<?> getBeanClass()
Bean
getBeanClass
in interface Bean<X>
getBeanClass
in class InterceptorRuntimeBean<X>
public X create(CreationalContext<X> creationalContext)
Contextual
create
in interface Contextual<X>
create
in class InterceptorRuntimeBean<X>
creationalContext
- the creation context used to support circular
references.public void destroy(X instance, CreationalContext<X> env)
destroy
in interface Contextual<X>
destroy
in class InterceptorRuntimeBean<X>
instance
- the instance to destroypublic java.util.Set<java.lang.annotation.Annotation> getInterceptorBindings()
getInterceptorBindings
in interface Interceptor<X>
getInterceptorBindings
in class InterceptorRuntimeBean<X>
public java.util.Set<InjectionPoint> getInjectionPoints()
getInjectionPoints
in interface Bean<X>
getInjectionPoints
in class InterceptorRuntimeBean<X>
public void init()
protected void introspect()
protected void introspectQualifiers(java.lang.annotation.Annotation[] annList)
public AnnotatedType getAnnotatedType()
public java.lang.String toString()
toString
in class InterceptorRuntimeBean<X>