Represents the signature at a join point. This interface parallels java.lang.reflect.Member
.
This interface is typically used for tracing or logging applications to obtain reflective information about the join point, i.e. using the j2se 1.4 java.util.logging
API
aspect Logging { Logger logger = Logger.getLogger("MethodEntries"); before(): within(com.bigboxco..*) && execution(public * *(..)) { Signature sig = thisJoinPoint.getSignature(); logger.entering(sig.getDeclaringType().getName(), sig.getName()); } }
More detailed information about a specific kind of signature can be obtained by casting this Signature
object into one of its more specific sub-types available in org.aspectj.lang.reflect
.
@see java.lang.reflect.Member
@see java.util.logging.Logger
|
|
|
|
|
|