public class DecoratorDefImpl extends AbstractServiceInstrumenter implements DecoratorDef2
constraints, idMatcher, method, proxyFactory
Constructor and Description |
---|
DecoratorDefImpl(Method decoratorMethod,
String[] patterns,
String[] constraints,
PlasticProxyFactory proxyFactory,
String decoratorId,
Class serviceInterface,
Set<Class> markers) |
Modifier and Type | Method and Description |
---|---|
ServiceDecorator |
createDecorator(ModuleBuilderSource moduleSource,
ServiceResources resources)
Creates an object that can perform the decoration (in the default case, by invoking the decorator method on the
module class or instance.
|
String |
getDecoratorId()
Returns the id of the decorator, which is derived from the decorator method name.
|
getConstraints, getMarkers, getServiceInterface, matches, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getConstraints, matches
getMarkers, getServiceInterface
public DecoratorDefImpl(Method decoratorMethod, String[] patterns, String[] constraints, PlasticProxyFactory proxyFactory, String decoratorId, Class serviceInterface, Set<Class> markers)
public ServiceDecorator createDecorator(ModuleBuilderSource moduleSource, ServiceResources resources)
DecoratorDef
createDecorator
in interface DecoratorDef
moduleSource
- access to the the module instance associated with the module containing the decorator (not
necessarily the module containing the service being decorated)resources
- the resources visible to the decorator (which may be in a different module than the
service being decorated). Other resource properties (serviceId, serviceInterface, log, etc.)
are for the service being decorated.public String getDecoratorId()
DecoratorDef
getDecoratorId
in interface DecoratorDef
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.