Package org.jboss.weld.util.bean
Class IsolatedForwardingInterceptor<T>
- java.lang.Object
-
- org.jboss.weld.util.bean.ForwardingBeanAttributes<T>
-
- org.jboss.weld.util.bean.IsolatedForwardingBean<T>
-
- org.jboss.weld.util.bean.IsolatedForwardingInterceptor<T>
-
- All Implemented Interfaces:
Contextual<T>,Bean<T>,BeanAttributes<T>,Interceptor<T>,WrappedContextual<T>
- Direct Known Subclasses:
ForwardingInterceptor,IsolatedForwardingInterceptor.Impl
public abstract class IsolatedForwardingInterceptor<T> extends IsolatedForwardingBean<T> implements Interceptor<T>
Delegating implementation ofInterceptor. Separate delegate is used forBeanAttributesmethods, allowing this class to be used for processing of extension-provided beans.- Author:
- Jozef Hartinger
- See Also:
ProcessBeanAttributes
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIsolatedForwardingInterceptor.Impl<T>
-
Constructor Summary
Constructors Constructor Description IsolatedForwardingInterceptor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Interceptor<T>delegate()Set<Annotation>getInterceptorBindings()Obtains the interceptor bindings of the interceptor.Objectintercept(InterceptionType type, T instance, javax.interceptor.InvocationContext ctx)Invokes the specified kind of lifecycle callback or method invocation interception upon the given interceptor instance.booleanintercepts(InterceptionType type)Determines if the interceptor intercepts the specified kind of lifecycle callback or method invocation.-
Methods inherited from class org.jboss.weld.util.bean.IsolatedForwardingBean
create, destroy, equals, getBeanClass, getInjectionPoints, hashCode, isNullable, toString
-
Methods inherited from class org.jboss.weld.util.bean.ForwardingBeanAttributes
attributes, getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative
-
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, isNullable
-
Methods inherited from interface javax.enterprise.inject.spi.BeanAttributes
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative
-
Methods inherited from interface javax.enterprise.context.spi.Contextual
create, destroy
-
-
-
-
Method Detail
-
delegate
public abstract Interceptor<T> delegate()
- Specified by:
delegatein interfaceWrappedContextual<T>- Specified by:
delegatein classIsolatedForwardingBean<T>
-
getInterceptorBindings
public Set<Annotation> getInterceptorBindings()
Description copied from interface:InterceptorObtains the interceptor bindings of the interceptor.
- Specified by:
getInterceptorBindingsin interfaceInterceptor<T>- Returns:
- the set of interceptor bindings
-
intercepts
public boolean intercepts(InterceptionType type)
Description copied from interface:InterceptorDetermines if the interceptor intercepts the specified kind of lifecycle callback or method invocation.
- Specified by:
interceptsin interfaceInterceptor<T>- Parameters:
type- the kind of interception- Returns:
- returns true if the interceptor intercepts callbacks or business methods of the given type, and false otherwise.
-
intercept
public Object intercept(InterceptionType type, T instance, javax.interceptor.InvocationContext ctx) throws Exception
Description copied from interface:InterceptorInvokes the specified kind of lifecycle callback or method invocation interception upon the given interceptor instance.
- Specified by:
interceptin interfaceInterceptor<T>- Parameters:
type- the kind of interceptioninstance- the interceptor instance to invokectx- the context for the invocation- Returns:
- the invocation return value
- Throws:
Exception- thrown by the target method and/or the following interceptors in the chain
-
-