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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetConstraints, matchesgetMarkers, getServiceInterfacepublic AdvisorDefImpl(Method method, String[] patterns, String[] constraints, PlasticProxyFactory proxyFactory, String advisorId, Class serviceInterface, Set<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 String getAdvisorId()
AdvisorDefgetAdvisorId in interface AdvisorDef5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.