© F. Fondement-5-
thisJoinPointStaticPart.getKind()
org.aspectj.lang.JoinPoint
public static final java.lang.String $'9,&(B(;(&87,21 "adviceexecution"
public static final java.lang.String &216758&725B&$// "constructor-call"
public static final java.lang.String &216758&725B(;(&8
7,21
"constructor-
execution"
public static final java.lang.String (;&(37,21B+$1'/(5 "exception-handler"
public static final java.lang.String ),(/'B*(7 "field-get"
public static final java.lang.String ),(/'B6(7 "field-set"
public static final java.lang.String ,1,7,$/,=$7,21 "initialization"
public static final java.lang.String 0(7+2'B&$// "method-call"
public static final java.lang.String 0(7+2'B(;(&87,21 "method-execution"
public static final java.lang.String 35(,17,$/,=$7,21 "preinitialization"
public static final java.lang.String 67$7,&,1,7,$/,=$7,21 "staticinitialization"
© F. Fondement-6-
thisJoinPointStaticPart.getSignature()
Signature
name : EString
toString() : EString
Class
CodeSignature
MemberSignature
parameterNames : EString
AdviceSignature
MethodClass
ConstructorSignature
Constructor
InitializerSignature MethodSignature
FieldSignature
Field
CatchClauseSignature
Class
declaringClass
1
parameterTypes
0..*
exceptionTypes
0..1
methods
0..*
class 1
advice 1
constructors
0..*
class 1
constructor 1initializer
1method
1
fields 0..*
class 1
field 1
parameterType
1
returnType
0..1
© F. Fondement-7-
thisJoinPointStaticPart.getSignature()
Join Point Signature Kind
Method Call MethodSignature JoinPoint.METHOD_CALL
Method Execution MethodSignature JoinPoint.METHOD_EXECUTION
Constructor Call ConstructorSignature JoinPoint.CONSTRUCTOR_CALL
Constructor Execution ConstructorSignature JoinPoint.CONSTRUCTOR_EXECUTION
Static initializer execution InitializerSignature JoinPoint.STATICINITIALIZATION
Object pre-initialization ConstructorSignature JoinPoint.PREINTIALIZATION
Object initialization ConstructorSignature JoinPoint.INITIALIZATION
Field reference FieldSignature JoinPoint.FIELD_GET
Field assignment FieldSignature JoinPoint.FIELD_SET
Handler execution CatchClauseSignature JoinPoint.EXCEPTION_HANDLER
Advice execution AdviceSignature JoinPoint.ADVICE_EXECUTION
© F. Fondement-8-
Exercice
Dans l’aspect d’observation, notifier le nom du champ
modifié aux observateurs.
Faire une autre concrétisation de l’aspect d’observation
pour observer l’appel des méthodes move et resize.