org.apache.tapestry5.ioc.internal
Class AbstractServiceInstrumenter

java.lang.Object
  extended by org.apache.tapestry5.ioc.internal.AbstractServiceInstrumenter
Direct Known Subclasses:
AdvisorDefImpl, DecoratorDefImpl

public class AbstractServiceInstrumenter
extends Object

Abstract base class for implementations of 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.

Since:
5.1.0.0

Field Summary
protected  ClassFactory classFactory
           
protected  String[] constraints
           
protected  IdMatcher idMatcher
           
protected  Method method
           
 
Constructor Summary
AbstractServiceInstrumenter(Method method, String[] patterns, String[] constraints, ClassFactory classFactory)
           
 
Method Summary
 String[] getConstraints()
           
 boolean matches(ServiceDef serviceDef)
          Returns true if any provided pattern matches the id of the service.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

method

protected final Method method

idMatcher

protected final IdMatcher idMatcher

constraints

protected final String[] constraints

classFactory

protected final ClassFactory classFactory
Constructor Detail

AbstractServiceInstrumenter

public AbstractServiceInstrumenter(Method method,
                                   String[] patterns,
                                   String[] constraints,
                                   ClassFactory classFactory)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getConstraints

public String[] getConstraints()

matches

public boolean matches(ServiceDef serviceDef)
Returns true if any provided pattern matches the id of the service.



Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.