public interface DecoratorDef
AdvisorDef, which is based on AspectInterceptorBuilder.
Note: service decorators are applied around the interceptor generated via any AdvisorDefs (for compatibility with Tapestry 5.0). In general, you should use service
decoration or service advice, not both.| 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[] |
getConstraints()
Returns zero or more ordering constraint strings, used to order the decorated relative to the other decorators.
|
String |
getDecoratorId()
Returns the id of the decorator, which is derived from the decorator method name.
|
boolean |
matches(ServiceDef serviceDef)
Used to determine which services may be decorated by this decorator.
|
String getDecoratorId()
String[] getConstraints()
ServiceDecorator createDecorator(ModuleBuilderSource moduleSource, ServiceResources resources)
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.boolean matches(ServiceDef serviceDef)
ServiceDecorators are
invoked.serviceDef - 5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.