org.jboss.aop.instrument
Interface JoinpointClassifier.Matcher

Enclosing class:
JoinpointClassifier

protected static interface JoinpointClassifier.Matcher

This interface encapsulates a matching method. This allows us to use instances of Matcher as references to matching methods.


Method Summary
 boolean matches(Pointcut pointcut, Advisor advisor, javassist.CtMember member)
          Checks if pointcut matches a joinpoint.
 

Method Detail

matches

boolean matches(Pointcut pointcut,
                Advisor advisor,
                javassist.CtMember member)
                throws javassist.NotFoundException
Checks if pointcut matches a joinpoint. The joinpoint this method refers to is dependend of the Macther interface implementer. All that is known about the joinpoint is the class member related to it: member.

Parameters:
pointcut - the pointcut whose matching will be tested.
advisor - advisor associated with the class declaring member.
member - class member related to the joinpoint.
Returns:
true if the pointcut matches the joinpoint.
Throws:
javassist.NotFoundException - thrown if the matching of pointcut fails.


Copyright © 2008 JBoss, a division of Red Hat, Inc.. All Rights Reserved.