Class PlainInterceptorFactory<T>
- java.lang.Object
-
- org.jboss.weld.interceptor.reader.PlainInterceptorFactory<T>
-
- Type Parameters:
T
- the type of the interceptor
- All Implemented Interfaces:
InterceptorFactory<T>
public class PlainInterceptorFactory<T> extends Object implements InterceptorFactory<T>
InterceptorFactory that uses anInjectionTarget
as a factory for interceptor instances.This factory is used for interceptors that are not CDI beans - interceptors defined using the
Interceptors
annotation.- Author:
- Jozef Hartinger
-
-
Constructor Summary
Constructors Constructor Description PlainInterceptorFactory(InjectionTarget<T> injectionTarget)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description T
create(CreationalContext<T> ctx, BeanManagerImpl manager)
Create a new instance of the interceptorInjectionTarget<T>
getInjectionTarget()
static <T> PlainInterceptorFactory<T>
of(Class<T> javaClass, BeanManagerImpl manager)
-
-
-
Constructor Detail
-
PlainInterceptorFactory
public PlainInterceptorFactory(InjectionTarget<T> injectionTarget)
-
-
Method Detail
-
of
public static <T> PlainInterceptorFactory<T> of(Class<T> javaClass, BeanManagerImpl manager)
-
create
public T create(CreationalContext<T> ctx, BeanManagerImpl manager)
Description copied from interface:InterceptorFactory
Create a new instance of the interceptor- Specified by:
create
in interfaceInterceptorFactory<T>
- Returns:
-
getInjectionTarget
public InjectionTarget<T> getInjectionTarget()
-
-