public class AbstractServiceInstrumenter extends java.lang.Object
ServiceDecorator
(i.e., old school) and
ServiceAdvisor
(i.e., new school). "Instrumenter" is a rought approximation of what
these two approaches have in common: instrumenting of method calls of a service.Modifier and Type | Field and Description |
---|---|
protected java.lang.String[] |
constraints |
protected IdMatcher |
idMatcher |
protected java.lang.reflect.Method |
method |
protected PlasticProxyFactory |
proxyFactory |
Constructor and Description |
---|
AbstractServiceInstrumenter(java.lang.reflect.Method method,
java.lang.String[] patterns,
java.lang.String[] constraints,
java.lang.Class serviceInterface,
java.util.Set<java.lang.Class> markers,
PlasticProxyFactory proxyFactory) |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getConstraints() |
java.util.Set<java.lang.Class> |
getMarkers() |
java.lang.Class |
getServiceInterface() |
boolean |
matches(ServiceDef serviceDef)
Returns true if any provided pattern matches the id of the service.
|
java.lang.String |
toString() |
protected final java.lang.reflect.Method method
protected final java.lang.String[] constraints
protected final PlasticProxyFactory proxyFactory
public AbstractServiceInstrumenter(java.lang.reflect.Method method, java.lang.String[] patterns, java.lang.String[] constraints, java.lang.Class serviceInterface, java.util.Set<java.lang.Class> markers, PlasticProxyFactory proxyFactory)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String[] getConstraints()
public boolean matches(ServiceDef serviceDef)
public java.util.Set<java.lang.Class> getMarkers()
public java.lang.Class getServiceInterface()
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.