Class ServiceDecoratorImpl
- java.lang.Object
 - 
- org.apache.tapestry5.ioc.internal.AbstractMethodInvokingInstrumenter
 - 
- org.apache.tapestry5.ioc.internal.ServiceDecoratorImpl
 
 
 
- 
- All Implemented Interfaces:
 ServiceDecorator
public class ServiceDecoratorImpl extends AbstractMethodInvokingInstrumenter implements ServiceDecorator
A wrapper around a decorator method. 
- 
- 
Field Summary
- 
Fields inherited from class org.apache.tapestry5.ioc.internal.AbstractMethodInvokingInstrumenter
method, resourcesDefaults, serviceId, serviceInterface 
 - 
 
- 
Constructor Summary
Constructors Constructor Description ServiceDecoratorImpl(Method method, ModuleBuilderSource moduleSource, ServiceResources resources, PlasticProxyFactory proxyFactory) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectcreateInterceptor(Object delegate)Creates a new interceptor object implementing the same service interface as the delegate object.- 
Methods inherited from class org.apache.tapestry5.ioc.internal.AbstractMethodInvokingInstrumenter
invoke, toString 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
ServiceDecoratorImpl
public ServiceDecoratorImpl(Method method, ModuleBuilderSource moduleSource, ServiceResources resources, PlasticProxyFactory proxyFactory)
 
 - 
 
- 
Method Detail
- 
createInterceptor
public Object createInterceptor(Object delegate)
Description copied from interface:ServiceDecoratorCreates a new interceptor object implementing the same service interface as the delegate object.- Specified by:
 createInterceptorin interfaceServiceDecorator- Parameters:
 delegate- an existing object implementing the service interface.- Returns:
 - a new object implementing the same service interface, or delegate or null if the decorator chooses not to create a new interceptor.
 
 
 - 
 
 -