public class InterceptorImpl<T> extends ManagedBean<T> implements Interceptor<T>
annotatedType, enhancedAnnotatedItem
type
beanManager
BEAN_ID_PREFIX, BEAN_ID_SEPARATOR
Modifier | Constructor and Description |
---|---|
protected |
InterceptorImpl(BeanAttributes<T> attributes,
EnhancedAnnotatedType<T> type,
BeanManagerImpl beanManager) |
Modifier and Type | Method and Description |
---|---|
Set<Annotation> |
getInterceptorBindings()
Obtains the interceptor bindings of the interceptor.
|
InterceptorMetadata<T> |
getInterceptorMetadata() |
void |
initializeAfterBeanDiscovery()
In particular cases, the deployer must perform some initialization operations
only after all beans have been deployed (e.g.
|
Object |
intercept(InterceptionType type,
T instance,
InvocationContext ctx)
Invokes the specified kind of lifecycle callback or method invocation interception upon the
given interceptor instance.
|
boolean |
intercepts(InterceptionType type)
Determines if the interceptor intercepts the specified kind of lifecycle callback or method
invocation.
|
boolean |
isSerializable() |
static <T> InterceptorImpl<T> |
of(BeanAttributes<T> attributes,
EnhancedAnnotatedType<T> type,
BeanManagerImpl beanManager) |
String |
toString() |
checkBeanImplementation, checkType, create, createId, destroy, internalInitialize, isInterceptionCandidate, isPassivationCapableBean, isPassivationCapableDependency, isProxyable, specialize
cleanupAfterBoot, getAnnotated, getDecorators, getEnhancedAnnotated, getInjectionPoints, getInjectionTarget, getInterceptors, getProducer, hasDecorators, hasInterceptors, initType, preSpecialize, setInjectionTarget, setProducer, setProducer
checkSpecialization, getSpecializedBeans, getType, isDependent, isNormalScoped, isProxyRequired, isSpecializing, postSpecialize, preInitialize
getBeanClass, getBeanManager, getQualifierInstances, initialize
attributes, equals, getId, hashCode, isNullable, setAttributes, unwrap
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getBeanClass, getInjectionPoints, isNullable
create, destroy
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative
getId
protected InterceptorImpl(BeanAttributes<T> attributes, EnhancedAnnotatedType<T> type, BeanManagerImpl beanManager)
public static <T> InterceptorImpl<T> of(BeanAttributes<T> attributes, EnhancedAnnotatedType<T> type, BeanManagerImpl beanManager)
public Set<Annotation> getInterceptorBindings()
Interceptor
Obtains the interceptor bindings of the interceptor.
getInterceptorBindings
in interface Interceptor<T>
public InterceptorMetadata<T> getInterceptorMetadata()
public Object intercept(InterceptionType type, T instance, InvocationContext ctx)
Interceptor
Invokes the specified kind of lifecycle callback or method invocation interception upon the given interceptor instance.
intercept
in interface Interceptor<T>
type
- the kind of interceptioninstance
- the interceptor instance to invokectx
- the context for the invocationpublic boolean intercepts(InterceptionType type)
Interceptor
Determines if the interceptor intercepts the specified kind of lifecycle callback or method invocation.
intercepts
in interface Interceptor<T>
type
- the kind of interceptionpublic boolean isSerializable()
public void initializeAfterBeanDiscovery()
RIBean
initializeAfterBeanDiscovery
in class ManagedBean<T>
public String toString()
toString
in class ManagedBean<T>
Copyright © 2013 Seam Framework. All Rights Reserved.