org.jboss.cdi.tck.tests.extensions.interceptors.custom
Class CustomInterceptor

java.lang.Object
  extended by org.jboss.cdi.tck.tests.extensions.interceptors.custom.AbstractInterceptor<FooInterceptor>
      extended by org.jboss.cdi.tck.tests.extensions.interceptors.custom.CustomInterceptor
All Implemented Interfaces:
javax.enterprise.context.spi.Contextual<FooInterceptor>, javax.enterprise.inject.spi.Bean<FooInterceptor>, javax.enterprise.inject.spi.BeanAttributes<FooInterceptor>, javax.enterprise.inject.spi.Interceptor<FooInterceptor>, javax.enterprise.inject.spi.PassivationCapable

public class CustomInterceptor
extends AbstractInterceptor<FooInterceptor>
implements javax.enterprise.inject.spi.PassivationCapable

Extension-provided implementation of Interceptor. Delegates to FooInterceptor (which in real world could represent a legacy-style interceptor - e.g. Seam 2 interceptor)

Author:
Jozef Hartinger

Constructor Summary
CustomInterceptor()
           
 
Method Summary
 Class<?> getBeanClass()
           
 String getId()
           
 Set<Annotation> getInterceptorBindings()
           
 Object intercept(javax.enterprise.inject.spi.InterceptionType type, FooInterceptor instance, javax.interceptor.InvocationContext ctx)
           
 boolean intercepts(javax.enterprise.inject.spi.InterceptionType type)
           
static boolean isInvoked()
           
static void reset()
           
 
Methods inherited from class org.jboss.cdi.tck.tests.extensions.interceptors.custom.AbstractInterceptor
create, destroy, getInjectionPoints, getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative, isNullable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomInterceptor

public CustomInterceptor()
Method Detail

getInterceptorBindings

public Set<Annotation> getInterceptorBindings()
Specified by:
getInterceptorBindings in interface javax.enterprise.inject.spi.Interceptor<FooInterceptor>

intercepts

public boolean intercepts(javax.enterprise.inject.spi.InterceptionType type)
Specified by:
intercepts in interface javax.enterprise.inject.spi.Interceptor<FooInterceptor>

intercept

public Object intercept(javax.enterprise.inject.spi.InterceptionType type,
                        FooInterceptor instance,
                        javax.interceptor.InvocationContext ctx)
Specified by:
intercept in interface javax.enterprise.inject.spi.Interceptor<FooInterceptor>

getBeanClass

public Class<?> getBeanClass()
Specified by:
getBeanClass in interface javax.enterprise.inject.spi.Bean<FooInterceptor>

isInvoked

public static boolean isInvoked()

reset

public static void reset()

getId

public String getId()
Specified by:
getId in interface javax.enterprise.inject.spi.PassivationCapable


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