org.apache.webbeans.intercept.custom
Class CustomInterceptor<T>

java.lang.Object
  extended by org.apache.webbeans.component.AbstractOwbBean<T>
      extended by org.apache.webbeans.intercept.webbeans.WebBeansInterceptor<T>
          extended by org.apache.webbeans.intercept.custom.CustomInterceptor<T>
All Implemented Interfaces:
Contextual<T>, Bean<T>, Interceptor<T>, OwbBean<T>, OwbInterceptor<T>

public class CustomInterceptor<T>
extends WebBeansInterceptor<T>
implements Interceptor<T>


Field Summary
 
Fields inherited from class org.apache.webbeans.component.AbstractOwbBean
apiTypes, enabled, implQualifiers, implScopeType, injectionPoints, logger, name, nullable, passivatingId, returnType, scopeClass, serializable, specializedBean, stereoTypeClasses, stereoTypes, webBeansType
 
Constructor Summary
CustomInterceptor(AbstractInjectionTargetBean<T> delegateBean, Interceptor<T> actualInterceptor)
           
 
Method Summary
 T create(CreationalContext<T> context)
          
 void destroy(T instance, CreationalContext<T> context)
           
 Class<?> getBeanClass()
          Get return types of the bean.
 Set<InjectionPoint> getInjectionPoints()
          
 Set<Annotation> getInterceptorBindings()
           
 String getName()
          Name of the bean.
 Set<Annotation> getQualifiers()
           
 Class<? extends Annotation> getScope()
           
 Set<Class<? extends Annotation>> getStereotypes()
          
 Set<Type> getTypes()
           
 Object intercept(InterceptionType type, T instance, InvocationContext ctx)
           
 boolean intercepts(InterceptionType type)
           
 boolean isAlternative()
          
 boolean isNullable()
          
 
Methods inherited from class org.apache.webbeans.intercept.webbeans.WebBeansInterceptor
addInterceptorBinding, createInstance, getAnnotatedType, getClazz, getDelegate, getMetaInceptors, hasBinding, isPassivationCapable, isSerializable, setClazz, setInjections, toString, validatePassivationDependencies
 
Methods inherited from class org.apache.webbeans.component.AbstractOwbBean
addApiType, addInjectionPoint, addQualifier, addStereoType, createNewInstance, destroyCreatedInstance, destroyInstance, getId, getImplQualifiers, getImplScopeType, getInjectionPoint, getLogger, getManager, getOwbStereotypes, getReturnType, getWebBeansType, isDependent, isEnabled, isSpecializedBean, setEnabled, setImplScopeType, setName, setNullable, setSerializable, setSpecializedBean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CustomInterceptor

public CustomInterceptor(AbstractInjectionTargetBean<T> delegateBean,
                         Interceptor<T> actualInterceptor)
Method Detail

getInterceptorBindings

public Set<Annotation> getInterceptorBindings()
Specified by:
getInterceptorBindings in interface Interceptor<T>
Overrides:
getInterceptorBindings in class WebBeansInterceptor<T>

intercept

public Object intercept(InterceptionType type,
                        T instance,
                        InvocationContext ctx)
Specified by:
intercept in interface Interceptor<T>
Overrides:
intercept in class WebBeansInterceptor<T>

intercepts

public boolean intercepts(InterceptionType type)
Specified by:
intercepts in interface Interceptor<T>
Overrides:
intercepts in class WebBeansInterceptor<T>

getBeanClass

public Class<?> getBeanClass()
Description copied from class: AbstractOwbBean
Get return types of the bean.

Specified by:
getBeanClass in interface Bean<T>
Overrides:
getBeanClass in class WebBeansInterceptor<T>

getInjectionPoints

public Set<InjectionPoint> getInjectionPoints()
Description copied from class: AbstractOwbBean

Specified by:
getInjectionPoints in interface Bean<T>
Overrides:
getInjectionPoints in class WebBeansInterceptor<T>

getName

public String getName()
Description copied from class: AbstractOwbBean
Name of the bean.

Specified by:
getName in interface Bean<T>
Overrides:
getName in class WebBeansInterceptor<T>
Returns:
name of the bean

getQualifiers

public Set<Annotation> getQualifiers()
Specified by:
getQualifiers in interface Bean<T>
Overrides:
getQualifiers in class WebBeansInterceptor<T>

getScope

public Class<? extends Annotation> getScope()
Specified by:
getScope in interface Bean<T>
Overrides:
getScope in class WebBeansInterceptor<T>

getStereotypes

public Set<Class<? extends Annotation>> getStereotypes()
Description copied from class: AbstractOwbBean

Specified by:
getStereotypes in interface Bean<T>
Overrides:
getStereotypes in class WebBeansInterceptor<T>

getTypes

public Set<Type> getTypes()
Specified by:
getTypes in interface Bean<T>
Overrides:
getTypes in class WebBeansInterceptor<T>

isAlternative

public boolean isAlternative()
Description copied from class: AbstractOwbBean

Specified by:
isAlternative in interface Bean<T>
Overrides:
isAlternative in class WebBeansInterceptor<T>

isNullable

public boolean isNullable()
Description copied from class: AbstractOwbBean

Specified by:
isNullable in interface Bean<T>
Overrides:
isNullable in class WebBeansInterceptor<T>

create

public T create(CreationalContext<T> context)
Description copied from class: AbstractOwbBean

Specified by:
create in interface Contextual<T>
Overrides:
create in class AbstractOwbBean<T>

destroy

public void destroy(T instance,
                    CreationalContext<T> context)
Specified by:
destroy in interface Contextual<T>
Overrides:
destroy in class AbstractOwbBean<T>


Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.