org.jboss.aop.instrument
Class JoinpointFullClassifier

java.lang.Object
  extended byorg.jboss.aop.instrument.JoinpointClassifier
      extended byorg.jboss.aop.instrument.JoinpointFullClassifier

public class JoinpointFullClassifier
extends JoinpointClassifier

This class fully classifies joinpoints as JoinpointClassification.PREPARED as JoinpointClasification.WRAPPED and as JoinpointClassification.DYNAMICALY_WRAPPED according to the pointcuts registered in AspectManager.

Author:
Flavia Rainone
See Also:
JoinpointClassifier, JoinpointClassification

Nested Class Summary
 
Nested classes inherited from class org.jboss.aop.instrument.JoinpointClassifier
JoinpointClassifier.Matcher
 
Constructor Summary
JoinpointFullClassifier()
           
 
Method Summary
protected  JoinpointClassification classifyJoinpoint(javassist.CtMember member, Advisor advisor, JoinpointClassifier.Matcher joinpointMatcher)
          Classifies the execution of a joinpoint.
 
Methods inherited from class org.jboss.aop.instrument.JoinpointClassifier
classifyConstructorExecution, classifyFieldGet, classifyFieldSet, classifyMethodExecution
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JoinpointFullClassifier

public JoinpointFullClassifier()
Method Detail

classifyJoinpoint

protected JoinpointClassification classifyJoinpoint(javassist.CtMember member,
                                                    Advisor advisor,
                                                    JoinpointClassifier.Matcher joinpointMatcher)
                                             throws javassist.NotFoundException
Classifies the execution of a joinpoint. The joinpoint being classified is identified by matcher. If the joinpoint is matched only with pointcuts not associated with bindings, then the joinpoint is classified as JoinpointClassification.PREPARED. If it is matched with one or more binding associated pointcuts, then it is classified as JoinpointClassification.WRAPPED. If it is matched by only dynamicaly added binding pointcuts, it is classified as JoinpointClassification.DYNAMICALY_WRAPPED. On the other hand, if it is not matched by any pointcut at all, the joinpoint is classified as NOT_INSTRUMENTED.

Specified by:
classifyJoinpoint in class JoinpointClassifier
Parameters:
member - the member associated with the joinpoint to be classified.
advisor - the advisor associated with member declaring class.
joinpointMatcher - this matcher must be used to find out if a pointcut matches the joinpoint.
Returns:
the joinpoint classification.
Throws:
javassist.NotFoundException - thrown if the matching of pointcuts fails.
See Also:
JoinpointClassifier.classifyJoinpoint(javassist.CtMember, org.jboss.aop.Advisor, org.jboss.aop.instrument.JoinpointClassifier.Matcher)


Copyright © 2004 JBoss Inc. All Rights Reserved.