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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetConstraints, matchesgetMarkers, getServiceInterfacepublic 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)
AdvisorDefcreateAdvisor in interface AdvisorDefmoduleSource - used to obtain the module instanceresources - used to provide injections into the advise methodpublic java.lang.String getAdvisorId()
AdvisorDefgetAdvisorId in interface AdvisorDef${project.version} - Copyright © 2003-2015 The Apache Software Foundation.