public class AdvisorDefImpl extends AbstractServiceInstrumenter implements AdvisorDef2
constraints, idMatcher, method, proxyFactory
Constructor and Description |
---|
AdvisorDefImpl(java.lang.reflect.Method method,
java.lang.String[] patterns,
java.lang.String[] constraints,
PlasticProxyFactory proxyFactory,
java.lang.String advisorId,
java.lang.Class serviceInterface,
java.util.Set<java.lang.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).
|
java.lang.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(java.lang.reflect.Method method, java.lang.String[] patterns, java.lang.String[] constraints, PlasticProxyFactory proxyFactory, java.lang.String advisorId, java.lang.Class serviceInterface, java.util.Set<java.lang.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 java.lang.String getAdvisorId()
AdvisorDef
getAdvisorId
in interface AdvisorDef
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.