public class DefaultInterceptorHandler<T> extends Object implements InterceptorHandler, Externalizable
| Constructor and Description |
|---|
DefaultInterceptorHandler() |
DefaultInterceptorHandler(T target,
T delegate,
Map<Method,List<javax.enterprise.inject.spi.Interceptor<?>>> interceptors,
Map<javax.enterprise.inject.spi.Interceptor<?>,?> instances,
String beanPassivationId)
InterceptorHandler wich gets used in our InjectionTargets which
support interceptors and decorators
|
| Modifier and Type | Method and Description |
|---|---|
T |
getDelegate() |
Map<javax.enterprise.inject.spi.Interceptor<?>,?> |
getInstances() |
Map<Method,List<javax.enterprise.inject.spi.Interceptor<?>>> |
getInterceptors() |
T |
getTarget() |
Object |
invoke(Method method,
Object[] parameters)
This method will get called whenever the proxy
of the intercepted instance will get invoked.
|
void |
readExternal(ObjectInput in) |
void |
writeExternal(ObjectOutput out) |
public DefaultInterceptorHandler(T target, T delegate, Map<Method,List<javax.enterprise.inject.spi.Interceptor<?>>> interceptors, Map<javax.enterprise.inject.spi.Interceptor<?>,?> instances, String beanPassivationId)
target - the decorated and intercepted instance. Needed for delivering Events to private methods, etc.delegate - the outermost Decorator or the intercepted instanceinterceptors - Map with all active interceptors for each method.instances - the Interceptor instancesbeanPassivationId - passivationId if a Bean is PassivationCapablepublic DefaultInterceptorHandler()
public T getTarget()
public T getDelegate()
public Map<javax.enterprise.inject.spi.Interceptor<?>,?> getInstances()
public Map<Method,List<javax.enterprise.inject.spi.Interceptor<?>>> getInterceptors()
public Object invoke(Method method, Object[] parameters)
InterceptorHandlerinvoke in interface InterceptorHandlermethod - Method which should get invokedparameters - original invocation parameterspublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionCopyright © 2008-2013 The Apache Software Foundation. All Rights Reserved.