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:
javax.enterprise.context.spi.Contextual<T>, javax.enterprise.inject.spi.Bean<T>, javax.enterprise.inject.spi.Interceptor<T>, OwbBean<T>, OwbInterceptor<T>

public class CustomInterceptor<T>
extends WebBeansInterceptor<T>
implements javax.enterprise.inject.spi.Interceptor<T>


Field Summary
 
Fields inherited from class org.apache.webbeans.component.AbstractOwbBean
apiTypes, enabled, implQualifiers, implScopeType, injectionPoints, name, nullable, passivatingId, returnType, scopeClass, serializable, specializedBean, stereoTypeClasses, stereoTypes, webBeansType
 
Constructor Summary
CustomInterceptor(AbstractInjectionTargetBean<T> delegateBean, javax.enterprise.inject.spi.Interceptor<T> actualInterceptor)
           
 
Method Summary
 T create(javax.enterprise.context.spi.CreationalContext<T> context)
          
 void destroy(T instance, javax.enterprise.context.spi.CreationalContext<T> context)
           
 boolean equals(Object obj)
           
 Class<?> getBeanClass()
          Get return types of the bean.
 Set<javax.enterprise.inject.spi.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()
           
 int hashCode()
           
 Object intercept(javax.enterprise.inject.spi.InterceptionType type, T instance, javax.interceptor.InvocationContext ctx)
           
 boolean intercepts(javax.enterprise.inject.spi.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, getWebBeansContext, getWebBeansType, isDependent, isEnabled, isSpecializedBean, setEnabled, setImplScopeType, setName, setNullable, setSerializable, setSpecializedBean
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CustomInterceptor

public CustomInterceptor(AbstractInjectionTargetBean<T> delegateBean,
                         javax.enterprise.inject.spi.Interceptor<T> actualInterceptor)
Method Detail

getInterceptorBindings

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

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>
Overrides:
intercept in class WebBeansInterceptor<T>

intercepts

public boolean intercepts(javax.enterprise.inject.spi.InterceptionType type)
Specified by:
intercepts in interface javax.enterprise.inject.spi.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 javax.enterprise.inject.spi.Bean<T>
Overrides:
getBeanClass in class WebBeansInterceptor<T>

getInjectionPoints

public Set<javax.enterprise.inject.spi.InjectionPoint> getInjectionPoints()
Description copied from class: AbstractOwbBean

Specified by:
getInjectionPoints in interface javax.enterprise.inject.spi.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 javax.enterprise.inject.spi.Bean<T>
Overrides:
getName in class WebBeansInterceptor<T>
Returns:
name of the bean

getQualifiers

public Set<Annotation> getQualifiers()
Specified by:
getQualifiers in interface javax.enterprise.inject.spi.Bean<T>
Overrides:
getQualifiers in class WebBeansInterceptor<T>

getScope

public Class<? extends Annotation> getScope()
Specified by:
getScope in interface javax.enterprise.inject.spi.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 javax.enterprise.inject.spi.Bean<T>
Overrides:
getStereotypes in class WebBeansInterceptor<T>

getTypes

public Set<Type> getTypes()
Specified by:
getTypes in interface javax.enterprise.inject.spi.Bean<T>
Overrides:
getTypes in class WebBeansInterceptor<T>

isAlternative

public boolean isAlternative()
Description copied from class: AbstractOwbBean

Specified by:
isAlternative in interface javax.enterprise.inject.spi.Bean<T>
Overrides:
isAlternative in class WebBeansInterceptor<T>

isNullable

public boolean isNullable()
Description copied from class: AbstractOwbBean

Specified by:
isNullable in interface javax.enterprise.inject.spi.Bean<T>
Overrides:
isNullable in class WebBeansInterceptor<T>

create

public T create(javax.enterprise.context.spi.CreationalContext<T> context)
Description copied from class: AbstractOwbBean

Specified by:
create in interface javax.enterprise.context.spi.Contextual<T>
Overrides:
create in class AbstractOwbBean<T>

destroy

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

hashCode

public int hashCode()
Overrides:
hashCode in class AbstractOwbBean<T>

equals

public boolean equals(Object obj)
Overrides:
equals in class AbstractOwbBean<T>


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