public class JoinpointSimpleClassifier extends JoinpointClassifier
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
JoinpointClassifier
,
JoinpointClassification
JoinpointClassifier.BindingCollectionAccessor, JoinpointClassifier.Matcher
Constructor and Description |
---|
JoinpointSimpleClassifier() |
Modifier and Type | Method and Description |
---|---|
protected JoinpointClassification |
classifyJoinpoint(javassist.CtMember member,
Advisor advisor,
JoinpointClassifier.Matcher joinpointMatcher,
JoinpointClassifier.BindingCollectionAccessor bindingCollectionAccessor)
Classifies the execution of a joinpoint.
|
classifyConstructorExecution, classifyFieldGet, classifyFieldSet, classifyMethodExecution
protected JoinpointClassification classifyJoinpoint(javassist.CtMember member, Advisor advisor, JoinpointClassifier.Matcher joinpointMatcher, JoinpointClassifier.BindingCollectionAccessor bindingCollectionAccessor) throws javassist.NotFoundException
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
.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.javassist.NotFoundException
- thrown if the matching of pointcuts fails.org.jboss.aop.instrument.JoinpointClassifier#classifyJoinpoint(javassist.CtMember, org.jboss.aop.Advisor, org.jboss.aop.instrument.JoinpointClassifier.Matcher)
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.