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 PassivationCapable
public 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)
InterceptorHandler
invoke
in interface InterceptorHandler
method
- Method which should get invokedparameters
- original invocation parameterspublic void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.