public interface AdvisorDef
ServiceAdvisor
is
obtained and invoked.
Note: service decorators (via DecoratorDef
are applied around the
interceptor generated via service advisors, (for compatibility with Tapestry 5.0). In general, you should use service
decoration or service advice, not both.Modifier and Type | Method and Description |
---|---|
ServiceAdvisor |
createAdvisor(ModuleBuilderSource moduleSource,
ServiceResources resources)
Creates an object that can provide the service advice (in the default case, by invoking the advise method on the
module class or instance).
|
String |
getAdvisorId()
Returns the id of the advisor, which is derived from the advisor method name.
|
String[] |
getConstraints()
Returns ordering constraints for this advisor, to order it relative to other advisors.
|
boolean |
matches(ServiceDef serviceDef)
Used to determine which services may be advised.
|
String getAdvisorId()
String[] getConstraints()
ServiceAdvisor createAdvisor(ModuleBuilderSource moduleSource, ServiceResources resources)
moduleSource
- used to obtain the module instanceresources
- used to provide injections into the advise methodboolean matches(ServiceDef serviceDef)
ServiceAdvisor
s are
obtained and invoked.serviceDef
- identifies a service that may be advised${project.version} - Copyright © 2003-2015 The Apache Software Foundation.