org.jboss.cdi.tck.tests.extensions.interceptors.custom
Class AbstractInterceptor<T>

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

public abstract class AbstractInterceptor<T>
extends Object
implements javax.enterprise.inject.spi.Interceptor<T>

Utility class for extension-provided interceptor tests.

Author:
Jozef Hartinger

Constructor Summary
AbstractInterceptor()
           
 
Method Summary
 T create(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
           
 void destroy(T instance, javax.enterprise.context.spi.CreationalContext<T> creationalContext)
           
 Set<javax.enterprise.inject.spi.InjectionPoint> getInjectionPoints()
           
 String getName()
           
 Set<Annotation> getQualifiers()
           
 Class<? extends Annotation> getScope()
           
 Set<Class<? extends Annotation>> getStereotypes()
           
 Set<Type> getTypes()
           
 boolean isAlternative()
           
 boolean isNullable()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.enterprise.inject.spi.Interceptor
getInterceptorBindings, intercept, intercepts
 
Methods inherited from interface javax.enterprise.inject.spi.Bean
getBeanClass
 

Constructor Detail

AbstractInterceptor

public AbstractInterceptor()
Method Detail

getTypes

public Set<Type> getTypes()
Specified by:
getTypes in interface javax.enterprise.inject.spi.BeanAttributes<T>

getQualifiers

public Set<Annotation> getQualifiers()
Specified by:
getQualifiers in interface javax.enterprise.inject.spi.BeanAttributes<T>

getScope

public Class<? extends Annotation> getScope()
Specified by:
getScope in interface javax.enterprise.inject.spi.BeanAttributes<T>

getName

public String getName()
Specified by:
getName in interface javax.enterprise.inject.spi.BeanAttributes<T>

getStereotypes

public Set<Class<? extends Annotation>> getStereotypes()
Specified by:
getStereotypes in interface javax.enterprise.inject.spi.BeanAttributes<T>

isAlternative

public boolean isAlternative()
Specified by:
isAlternative in interface javax.enterprise.inject.spi.BeanAttributes<T>

isNullable

public boolean isNullable()
Specified by:
isNullable in interface javax.enterprise.inject.spi.BeanAttributes<T>

getInjectionPoints

public Set<javax.enterprise.inject.spi.InjectionPoint> getInjectionPoints()
Specified by:
getInjectionPoints in interface javax.enterprise.inject.spi.Bean<T>

create

public T create(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
Specified by:
create in interface javax.enterprise.context.spi.Contextual<T>

destroy

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


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