public class AdvisorDefImpl extends AbstractServiceInstrumenter implements AdvisorDef2
constraints, idMatcher, method, proxyFactory
Constructor and Description |
---|
AdvisorDefImpl(Method method,
String[] patterns,
String[] constraints,
PlasticProxyFactory proxyFactory,
String advisorId,
Class serviceInterface,
Set<Class> markers) |
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.
|
getConstraints, getMarkers, getServiceInterface, matches, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getConstraints, matches
getMarkers, getServiceInterface
public AdvisorDefImpl(Method method, String[] patterns, String[] constraints, PlasticProxyFactory proxyFactory, String advisorId, Class serviceInterface, Set<Class> markers)
public ServiceAdvisor createAdvisor(ModuleBuilderSource moduleSource, ServiceResources resources)
AdvisorDef
createAdvisor
in interface AdvisorDef
moduleSource
- used to obtain the module instanceresources
- used to provide injections into the advise methodpublic String getAdvisorId()
AdvisorDef
getAdvisorId
in interface AdvisorDef
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.