public class InterceptorRuntimeBean<X> extends AbstractInterceptorBean<X>
Constructor and Description |
---|
InterceptorRuntimeBean(InterceptorRuntimeBean<X> child,
java.lang.Class<X> type) |
Modifier and Type | Method and Description |
---|---|
X |
create(CreationalContext<X> cxt)
Creates a new instance for the Contextual's type.
|
void |
destroy(X instance,
CreationalContext<X> env)
Destroys a bean instance
|
boolean |
equals(java.lang.Object o) |
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.reflect.Method |
getMethod(InterceptionType type)
Returns the bean's deployment type
|
java.lang.String |
getName()
Returns the bean's name or null if the bean does not have a
primary name.
|
InterceptorRuntimeBean<?> |
getParent() |
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.lang.Class<?> |
getType() |
java.util.Set<java.lang.reflect.Type> |
getTypes()
Returns the types that the bean implements
|
int |
hashCode() |
java.lang.Object |
intercept(InterceptionType type,
X instance,
InvocationContext ctx)
Invokes the callback
|
boolean |
intercepts(InterceptionType type)
Returns the bean's deployment type
|
boolean |
isAllowParent(InterceptionType type) |
boolean |
isAlternative()
Returns true if the bean can be null
|
boolean |
isNullable()
Returns true if the bean can be null
|
java.lang.String |
toString() |
public InterceptorRuntimeBean(InterceptorRuntimeBean<X> child, java.lang.Class<X> type)
public java.lang.Class<?> getType()
public InterceptorRuntimeBean<?> getParent()
public boolean isAllowParent(InterceptionType type)
public java.util.Set<java.lang.annotation.Annotation> getQualifiers()
public java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getStereotypes()
public java.lang.String getName()
public boolean isNullable()
public boolean isAlternative()
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
public X create(CreationalContext<X> cxt)
Contextual
cxt
- the creation context used to support circular
references.public void destroy(X instance, CreationalContext<X> env)
instance
- the instance to destroypublic java.util.Set<java.lang.annotation.Annotation> getInterceptorBindings()
public boolean intercepts(InterceptionType type)
public java.lang.reflect.Method getMethod(InterceptionType type)
public java.util.Set<InjectionPoint> getInjectionPoints()
public java.lang.Object intercept(InterceptionType type, X instance, InvocationContext ctx)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object