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,java.lang.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

Field Summary
 
Fields inherited from class org.jboss.weld.bean.AbstractClassBean
annotatedItem
 
Fields inherited from class org.jboss.weld.bean.AbstractBean
bindings, manager, name, scopeType, 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 manager)
           
 
Method Summary
protected  void defaultPostConstruct(T instance)
           
protected  void defaultPreDestroy(T instance)
           
 java.util.Set<java.lang.annotation.Annotation> getInterceptorBindingTypes()
           
 java.lang.Object intercept(javax.enterprise.inject.spi.InterceptionType type, T instance, javax.interceptor.InvocationContext ctx)
           
 boolean intercepts(javax.enterprise.inject.spi.InterceptionType type)
           
static
<T> InterceptorImpl<T>
of(WeldClass<T> type, BeanManagerImpl manager)
           
 
Methods inherited from class org.jboss.weld.bean.ManagedBean
applyInterceptors, attachCorrectInjectionPoint, checkBeanImplementation, checkConstructor, checkType, create, destroy, getConstructor, getDescription, getDescription, getSpecializedBean, initConstructor, initDeclaredInterceptors, initialize, isInterceptionCandidate, preSpecialize, specialize
 
Methods inherited from class org.jboss.weld.bean.AbstractClassBean
applyDecorators, flattenInterceptorBindings, getAnnotatedItem, getDecorators, getDefaultName, getInitializerMethods, getInjectableFields, getInjectionPoints, getInjectionTarget, getPostConstruct, getPreDestroy, getSuperclasses, hasDecorators, initDecorators, initInitializerMethods, initInjectableFields, initInterceptors, initPostConstruct, initPreDestroy, initProxyClassForDecoratedBean, initScopeType, initType, setInjectionTarget
 
Methods inherited from class org.jboss.weld.bean.AbstractBean
addInjectionPoint, addInjectionPoints, checkDelegateInjectionPoints, getAnnotatedInjectionPoints, getDelegateInjectionPoints, getMergedStereotypes, getName, getQualifiers, getScope, getStereotypes, getType, getTypes, initBindings, initDefaultBindings, initName, initPolicy, initPrimitive, initProxyable, initScopeTypeFromStereotype, initSerializable, initStereotypes, initTypes, isAlternative, isDependent, isInitialized, isNormalScoped, isNullable, isPrimitive, isProxyable, isSerializable, isSpecializing, postSpecialize
 
Methods inherited from class org.jboss.weld.bean.RIBean
equals, getBeanClass, getId, getManager, hashCode, toString
 
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 manager)
Method Detail

of

public static <T> InterceptorImpl<T> of(WeldClass<T> type,
                                        BeanManagerImpl manager)

getInterceptorBindingTypes

public java.util.Set<java.lang.annotation.Annotation> getInterceptorBindingTypes()
Specified by:
getInterceptorBindingTypes in interface javax.enterprise.inject.spi.Interceptor<T>

intercept

public java.lang.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>

defaultPostConstruct

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

defaultPreDestroy

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


Copyright © 2008-2009 Seam Framework. All Rights Reserved.