T
- the type of the interceptorpublic class PlainInterceptorFactory<T> extends Object implements InterceptorFactory<T>
InjectionTarget
as a factory for interceptor instances.
This factory is used for interceptors that are not CDI beans - interceptors defined using the Interceptors
annotation.
Constructor and Description |
---|
PlainInterceptorFactory(javax.enterprise.inject.spi.InjectionTarget<T> injectionTarget) |
Modifier and Type | Method and Description |
---|---|
T |
create(javax.enterprise.context.spi.CreationalContext<T> ctx,
BeanManagerImpl manager)
Create a new instance of the interceptor
|
javax.enterprise.inject.spi.InjectionTarget<T> |
getInjectionTarget() |
static <T> PlainInterceptorFactory<T> |
of(Class<T> javaClass,
BeanManagerImpl manager) |
public PlainInterceptorFactory(javax.enterprise.inject.spi.InjectionTarget<T> injectionTarget)
public static <T> PlainInterceptorFactory<T> of(Class<T> javaClass, BeanManagerImpl manager)
public T create(javax.enterprise.context.spi.CreationalContext<T> ctx, BeanManagerImpl manager)
InterceptorFactory
create
in interface InterceptorFactory<T>
public javax.enterprise.inject.spi.InjectionTarget<T> getInjectionTarget()
Copyright © 2016. All rights reserved.