Package org.apache.webbeans.intercept
Class DecoratorHandler
- java.lang.Object
-
- org.apache.webbeans.intercept.DecoratorHandler
-
- All Implemented Interfaces:
Externalizable,Serializable,InterceptorHandler
public class DecoratorHandler extends Object implements InterceptorHandler, Externalizable
InterceptorHandler which handles all the Decorators on the InjectionTarget. This one always gets added at the last position in the interceptor chain.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DecoratorHandler()DecoratorHandler(InterceptorResolutionService.BeanInterceptorInfo interceptorInfo, List<jakarta.enterprise.inject.spi.Decorator<?>> decorators, Map<jakarta.enterprise.inject.spi.Decorator<?>,?> instances, int index, Object target, String passivationId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectinvoke(Method method, Object[] args)This method will get called whenever the proxy of the intercepted instance will get invoked.voidreadExternal(ObjectInput in)voidwriteExternal(ObjectOutput out)
-
-
-
Constructor Detail
-
DecoratorHandler
public DecoratorHandler(InterceptorResolutionService.BeanInterceptorInfo interceptorInfo, List<jakarta.enterprise.inject.spi.Decorator<?>> decorators, Map<jakarta.enterprise.inject.spi.Decorator<?>,?> instances, int index, Object target, String passivationId)
-
DecoratorHandler
public DecoratorHandler()
-
-
Method Detail
-
invoke
public Object invoke(Method method, Object[] args)
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 invokedargs- 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
-
-