org.apache.webbeans.intercept.custom
Class CustomInterceptor<T>
java.lang.Object
org.apache.webbeans.component.AbstractOwbBean<T>
org.apache.webbeans.intercept.webbeans.WebBeansInterceptor<T>
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>
| Fields inherited from class org.apache.webbeans.component.AbstractOwbBean |
apiTypes, enabled, implQualifiers, implScopeType, injectionPoints, name, nullable, passivatingId, returnType, scopeClass, serializable, specializedBean, stereoTypeClasses, stereoTypes, webBeansType |
|
Method Summary |
T |
create(javax.enterprise.context.spi.CreationalContext<T> context)
|
void |
destroy(T instance,
javax.enterprise.context.spi.CreationalContext<T> context)
|
java.lang.Class<?> |
getBeanClass()
Get return types of the bean. |
java.util.Set<javax.enterprise.inject.spi.InjectionPoint> |
getInjectionPoints()
|
java.util.Set<java.lang.annotation.Annotation> |
getInterceptorBindings()
|
java.lang.String |
getName()
Name of the bean. |
java.util.Set<java.lang.annotation.Annotation> |
getQualifiers()
|
java.lang.Class<? extends java.lang.annotation.Annotation> |
getScope()
|
java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> |
getStereotypes()
|
java.util.Set<java.lang.reflect.Type> |
getTypes()
|
java.lang.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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CustomInterceptor
public CustomInterceptor(AbstractInjectionTargetBean<T> delegateBean,
javax.enterprise.inject.spi.Interceptor<T> actualInterceptor)
getInterceptorBindings
public java.util.Set<java.lang.annotation.Annotation> getInterceptorBindings()
- Specified by:
getInterceptorBindings in interface javax.enterprise.inject.spi.Interceptor<T>- Overrides:
getInterceptorBindings in class WebBeansInterceptor<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>- 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 java.lang.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 java.util.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 java.lang.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 java.util.Set<java.lang.annotation.Annotation> getQualifiers()
- Specified by:
getQualifiers in interface javax.enterprise.inject.spi.Bean<T>- Overrides:
getQualifiers in class WebBeansInterceptor<T>
getScope
public java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
- Specified by:
getScope in interface javax.enterprise.inject.spi.Bean<T>- Overrides:
getScope in class WebBeansInterceptor<T>
getStereotypes
public java.util.Set<java.lang.Class<? extends java.lang.annotation.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 java.util.Set<java.lang.reflect.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>
Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.