public class AbstractServiceInstrumenter extends 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 String[] |
constraints |
protected IdMatcher |
idMatcher |
protected Method |
method |
protected PlasticProxyFactory |
proxyFactory |
Constructor and Description |
---|
AbstractServiceInstrumenter(Method method,
String[] patterns,
String[] constraints,
Class serviceInterface,
Set<Class> markers,
PlasticProxyFactory proxyFactory) |
Modifier and Type | Method and Description |
---|---|
String[] |
getConstraints() |
Set<Class> |
getMarkers() |
Class |
getServiceInterface() |
boolean |
matches(ServiceDef serviceDef)
Returns true if any provided pattern matches the id of the service.
|
String |
toString() |
protected final String[] constraints
protected final PlasticProxyFactory proxyFactory
public AbstractServiceInstrumenter(Method method, String[] patterns, String[] constraints, Class serviceInterface, Set<Class> markers, PlasticProxyFactory proxyFactory)
public String[] getConstraints()
public boolean matches(ServiceDef serviceDef)
public Set<Class> getMarkers()
public Class getServiceInterface()
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.