org.skife.intercept.signatures
Class NamedSignature

java.lang.Object
  |
  +--org.skife.intercept.signatures.NamedSignature
All Implemented Interfaces:
Signature

public class NamedSignature
extends java.lang.Object
implements Signature

Matched all calls against a method with a specific name


Constructor Summary
NamedSignature(java.lang.String name)
           
 
Method Summary
 boolean matches(java.lang.reflect.Method m)
          Return true if m should be intercepted, false otherwise
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamedSignature

public NamedSignature(java.lang.String name)
Parameters:
name - Name of the method to match, a la Method.getName() using the String.matches(...) method.
Method Detail

matches

public boolean matches(java.lang.reflect.Method m)
Description copied from interface: Signature
Return true if m should be intercepted, false otherwise

Specified by:
matches in interface Signature
Returns:
true if name.matches(m.getName()) false otherwise
See Also:
Signature.matches(java.lang.reflect.Method)