Class JoinpointSimpleClassifier

  extended by org.jboss.aop.instrument.JoinpointClassifier
      extended by org.jboss.aop.instrument.JoinpointSimpleClassifier

public class JoinpointSimpleClassifier
extends JoinpointClassifier

This joinpoint classifier is anaware of differences between PREPARED and WRAPPED classifications. It classifies a joinpoint either as something that must be instrumented or something that mustn't, without caring about preparation. Whenever a joinpoint must be instrumented, it is classified as WRAPPED; by the other hand, whenever it is should not be instrumented, it is classified as NOT_INSTRUMENTED

Flavia Rainone
See Also:
JoinpointClassifier, JoinpointClassification

Nested Class Summary
Nested classes/interfaces inherited from class org.jboss.aop.instrument.JoinpointClassifier
JoinpointClassifier.BindingCollectionAccessor, JoinpointClassifier.Matcher
Constructor Summary
Method Summary
protected  JoinpointClassification classifyJoinpoint(javassist.CtMember member, Advisor advisor, JoinpointClassifier.Matcher joinpointMatcher, JoinpointClassifier.BindingCollectionAccessor bindingCollectionAccessor)
          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


public JoinpointSimpleClassifier()
Method Detail


protected JoinpointClassification classifyJoinpoint(javassist.CtMember member,
                                                    Advisor advisor,
                                                    JoinpointClassifier.Matcher joinpointMatcher,
                                                    JoinpointClassifier.BindingCollectionAccessor bindingCollectionAccessor)
                                             throws javassist.NotFoundException
Classifies the execution of a joinpoint. The joinpoint being classified is identified by matcher. If the joinpoint is matched by one or more pointcuts, then it is classified as JoinpointClassification.WRAPPED. Otherwise, it is classified as JoinpointClassification.NOT_INSTRUMENTED.

Specified by:
classifyJoinpoint in class JoinpointClassifier
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.
the joinpoint classification.
javassist.NotFoundException - thrown if the matching of pointcuts fails.
See Also:
org.jboss.aop.instrument.JoinpointClassifier#classifyJoinpoint(javassist.CtMember, org.jboss.aop.Advisor, org.jboss.aop.instrument.JoinpointClassifier.Matcher)

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