Package org.apache.webbeans.intercept
Class DefaultInterceptorHandler<T>
- java.lang.Object
-
- org.apache.webbeans.intercept.DefaultInterceptorHandler<T>
-
- All Implemented Interfaces:
Externalizable,Serializable,InterceptorHandler
public class DefaultInterceptorHandler<T> extends Object implements InterceptorHandler, Externalizable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultInterceptorHandler()DefaultInterceptorHandler(T target, T delegate, Map<Method,List<jakarta.enterprise.inject.spi.Interceptor<?>>> interceptors, Map<jakarta.enterprise.inject.spi.Interceptor<?>,?> instances, String beanPassivationId)InterceptorHandler wich gets used in our InjectionTargets which support interceptors and decorators
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TgetDelegate()Map<jakarta.enterprise.inject.spi.Interceptor<?>,?>getInstances()Map<Method,List<jakarta.enterprise.inject.spi.Interceptor<?>>>getInterceptors()TgetTarget()Objectinvoke(Method method, Object[] parameters)This method will get called whenever the proxy of the intercepted instance will get invoked.voidreadExternal(ObjectInput in)voidwriteExternal(ObjectOutput out)
-
-
-
Constructor Detail
-
DefaultInterceptorHandler
public DefaultInterceptorHandler(T target, T delegate, Map<Method,List<jakarta.enterprise.inject.spi.Interceptor<?>>> interceptors, Map<jakarta.enterprise.inject.spi.Interceptor<?>,?> instances, String beanPassivationId)
InterceptorHandler wich gets used in our InjectionTargets which support interceptors and decorators- Parameters:
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 isPassivationCapable
-
DefaultInterceptorHandler
public DefaultInterceptorHandler()
-
-
Method Detail
-
getTarget
public T getTarget()
-
getDelegate
public T getDelegate()
-
getInstances
public Map<jakarta.enterprise.inject.spi.Interceptor<?>,?> getInstances()
-
getInterceptors
public Map<Method,List<jakarta.enterprise.inject.spi.Interceptor<?>>> getInterceptors()
-
invoke
public Object invoke(Method method, Object[] parameters)
Description copied from interface:InterceptorHandlerThis method will get called whenever the proxy of the intercepted instance will get invoked.- Specified by:
invokein interfaceInterceptorHandler- Parameters:
method- Method which should get invokedparameters- original invocation parameters- Returns:
- the return value of the intercepted methos
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
-