org.jboss.weld.bean
Class InterceptorImpl<T>

java.lang.Object
  extended by org.jboss.weld.bean.RIBean<T>
      extended by org.jboss.weld.bean.AbstractBean<T,Class<T>>
          extended by org.jboss.weld.bean.AbstractClassBean<T>
              extended by org.jboss.weld.bean.ManagedBean<T>
                  extended by org.jboss.weld.bean.InterceptorImpl<T>
All Implemented Interfaces:
javax.enterprise.context.spi.Contextual<T>, javax.enterprise.inject.spi.Bean<T>, javax.enterprise.inject.spi.Interceptor<T>, javax.enterprise.inject.spi.PassivationCapable

public class InterceptorImpl<T>
extends ManagedBean<T>
implements javax.enterprise.inject.spi.Interceptor<T>

Author:
Marius Bogoevici, Marko Luksa

Field Summary
 
Fields inherited from class org.jboss.weld.bean.AbstractClassBean
annotatedItem, constructorForEnhancedSubclass, decoratorProxyFactory, enhancedSubclass
 
Fields inherited from class org.jboss.weld.bean.AbstractBean
alternative, beanManager, name, qualifiers, scope, type, types
 
Fields inherited from class org.jboss.weld.bean.RIBean
BEAN_ID_PREFIX, BEAN_ID_SEPARATOR
 
Constructor Summary
protected InterceptorImpl(WeldClass<T> type, BeanManagerImpl beanManager, org.jboss.weld.bootstrap.api.ServiceRegistry services)
           
 
Method Summary
protected  void defaultPostConstruct(T instance)
           
protected  void defaultPreDestroy(T instance)
           
 Set<Annotation> getInterceptorBindings()
           
 InterceptorMetadata<?> getInterceptorMetadata()
           
 Object intercept(javax.enterprise.inject.spi.InterceptionType type, T instance, javax.interceptor.InvocationContext ctx)
           
 boolean intercepts(javax.enterprise.inject.spi.InterceptionType type)
           
 boolean isSerializable()
           
static
<T> InterceptorImpl<T>
of(WeldClass<T> type, BeanManagerImpl beanManager, org.jboss.weld.bootstrap.api.ServiceRegistry services)
           
 String toString()
           
 
Methods inherited from class org.jboss.weld.bean.ManagedBean
applyInterceptors, checkBeanImplementation, checkType, create, createId, createInstance, createSimpleId, destroy, getSpecializedBean, hasDefaultProducer, initialize, initializeAfterBeanDiscovery, isInterceptionCandidate, isPassivationCapableBean, isPassivationCapableDependency, isProxyable, preSpecialize, specialize
 
Methods inherited from class org.jboss.weld.bean.AbstractClassBean
applyDecorators, checkConstructor, createEnhancedSubclass, getConstructor, getDecorators, getDefaultName, getInitializerMethods, getInjectableFields, getInjectionPoints, getInjectionTarget, getPostConstruct, getPreDestroy, getWeldAnnotated, hasDecorators, hasInterceptors, initConstructor, initDecorators, initEnhancedSubclass, initInitializerMethods, initInjectableFields, initInterceptorsIfNeeded, initPostConstruct, initPreDestroy, initScope, initType, isSubclassed, setInjectionTarget
 
Methods inherited from class org.jboss.weld.bean.AbstractBean
addInjectionPoint, addInjectionPoints, checkDelegateInjectionPoints, cleanupAfterBoot, getDelegateInjectionPoints, getMergedStereotypes, getName, getNewInjectionPoints, getQualifiers, getScope, getServices, getStereotypes, getType, getTypedTypes, getTypes, getWeldInjectionPoints, initAlternative, initDefaultQualifiers, initName, initQualifiers, initScopeFromStereotype, initStereotypes, initTypes, isAlternative, isDependent, isInitialized, isNormalScoped, isNullable, isPrimitive, isProxyRequired, isSpecializing, postSpecialize
 
Methods inherited from class org.jboss.weld.bean.RIBean
equals, getBeanClass, getBeanManager, getId, getQualifierInstances, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.enterprise.inject.spi.Bean
getBeanClass, getInjectionPoints, getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative, isNullable
 
Methods inherited from interface javax.enterprise.context.spi.Contextual
create, destroy
 

Constructor Detail

InterceptorImpl

protected InterceptorImpl(WeldClass<T> type,
                          BeanManagerImpl beanManager,
                          org.jboss.weld.bootstrap.api.ServiceRegistry services)
Method Detail

of

public static <T> InterceptorImpl<T> of(WeldClass<T> type,
                                        BeanManagerImpl beanManager,
                                        org.jboss.weld.bootstrap.api.ServiceRegistry services)

getInterceptorBindings

public Set<Annotation> getInterceptorBindings()
Specified by:
getInterceptorBindings in interface javax.enterprise.inject.spi.Interceptor<T>

getInterceptorMetadata

public InterceptorMetadata<?> getInterceptorMetadata()

intercept

public Object intercept(javax.enterprise.inject.spi.InterceptionType type,
                        T instance,
                        javax.interceptor.InvocationContext ctx)
Specified by:
intercept in interface javax.enterprise.inject.spi.Interceptor<T>

intercepts

public boolean intercepts(javax.enterprise.inject.spi.InterceptionType type)
Specified by:
intercepts in interface javax.enterprise.inject.spi.Interceptor<T>

isSerializable

public boolean isSerializable()

defaultPostConstruct

protected void defaultPostConstruct(T instance)
Overrides:
defaultPostConstruct in class AbstractClassBean<T>

defaultPreDestroy

protected void defaultPreDestroy(T instance)
Overrides:
defaultPreDestroy in class AbstractClassBean<T>

toString

public String toString()
Overrides:
toString in class ManagedBean<T>


Copyright © 2013 Seam Framework. All Rights Reserved.