|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This sample aspect component traces the calls on all the objects of the program.
To be active this aspect component must be configured with the
addTrace
method.
TracingAC
,
VerboseWrapper
Method Summary | |
void |
addCounter(String name,
String wrappeeExpr,
String wrappeeClassExpr,
String wrappeeMethodExpr)
This configuration method makes all the matching methods invocations to be counted. |
void |
addNamedTrace(String wrappeeExpr,
String wrappeeClassExpr,
String wrappeeMethodExpr)
This configuration method makes a method call to be traced. |
void |
addOptimizedCounter(String name,
String wrappeeExpr,
String wrappeeClassExpr,
String wrappeeMethodExpr,
String fieldName,
String argNumber)
This configuration method makes all the matching methods invocations to be counted in an optimized fashion. |
void |
addRecording(String wrappeeExpr,
String wrappeeClassExpr,
String wrappeeMethodExpr)
This configuration method creates a new recording on a set of methods. |
void |
addStackTrace(String wrappeeExpr,
String wrappeeClassExpr,
String wrappeeMethodExpr)
This configuration method makes a method call to be traced by a verbose wrapper. |
void |
addTrace(String wrappeeExpr,
String wrappeeClassExpr,
String wrappeeMethodExpr)
This configuration method makes a method call to be traced by a verbose wrapper. |
void |
addWrappersTrace(String wrappeeExpr,
String wrappeeClassExpr,
String wrappeeMethodExpr)
This configuration method makes a method call to be traced by a verbose wrapper. |
Method Detail |
public void addTrace(String wrappeeExpr, String wrappeeClassExpr, String wrappeeMethodExpr)
wrappeeExpr
- a regular expression that matches the
wrappee(s) name(s) that contain the method(s) to be tracedwrappeeClassExpr
- a regular expression that matches the
wrappee(s) class(es) name(s) that contain the method(s) to be
tracedwrappeeMethodExpr
- a regular expression that matches the
method(s) to be traced (within the classes or objects denoted by
the previous parameters)VerboseWrapper
public void addNamedTrace(String wrappeeExpr, String wrappeeClassExpr, String wrappeeMethodExpr)
wrappeeExpr
- a regular expression that matches the
wrappee(s) name(s) that contain the method(s) to be tracedwrappeeClassExpr
- a regular expression that matches the
wrappee(s) class(es) name(s) that contain the method(s) to be
tracedwrappeeMethodExpr
- a regular expression that matches the
method(s) to be traced (within the classes or objects denoted by
the previous parameters)VerboseWrapper
public void addStackTrace(String wrappeeExpr, String wrappeeClassExpr, String wrappeeMethodExpr)
wrappeeExpr
- a regular expression that matches the
wrappee(s) name(s) that contain the method(s) to be tracedwrappeeClassExpr
- a regular expression that matches the
wrappee(s) class(es) name(s) that contain the method(s) to be
tracedwrappeeMethodExpr
- a regular expression that matches the
method(s) to be traced (within the classes or objects denoted by
the previous parameters)VerboseWrapper
public void addWrappersTrace(String wrappeeExpr, String wrappeeClassExpr, String wrappeeMethodExpr)
wrappeeExpr
- a regular expression that matches the
wrappee(s) name(s) that contain the method(s) to be tracedwrappeeClassExpr
- a regular expression that matches the
wrappee(s) class(es) name(s) that contain the method(s) to be
tracedwrappeeMethodExpr
- a regular expression that matches the
method(s) to be traced (within the classes or objects denoted by
the previous parameters)VerboseWrapper
public void addRecording(String wrappeeExpr, String wrappeeClassExpr, String wrappeeMethodExpr)
wrappeeExpr
- a pointcut expression that matches the
wrappee(s) name(s) that contain the method(s) to be tracedwrappeeClassExpr
- a pointcut expression that matches the
wrappee(s) class(es) name(s) that contain the method(s) to be
tracedwrappeeMethodExpr
- a pointcut expression that matches the
method(s) to be traced (within the classes or objects denoted by
the previous parameters)public void addCounter(String name, String wrappeeExpr, String wrappeeClassExpr, String wrappeeMethodExpr)
name
- the name of the counter that is used (can be
shared)wrappeeExpr
- a regular expression that matches the
wrappee(s) name(s) that contain the method(s) to be countedwrappeeClassExpr
- a regular expression that matches the
wrappee(s) class(es) name(s) that contain the method(s) to be
countedwrappeeMethodExpr
- a regular expression that matches the
method(s) to be counted (within the classes or objects denoted
by the previous parameters)SimpleCountingWrapper
public void addOptimizedCounter(String name, String wrappeeExpr, String wrappeeClassExpr, String wrappeeMethodExpr, String fieldName, String argNumber)
name
- the name of the counter that is used (can be
shared)wrappeeExpr
- a regular expression that matches the
wrappee(s) name(s) that contain the method(s) to be countedwrappeeClassExpr
- a regular expression that matches the
wrappee(s) class(es) name(s) that contain the method(s) to be
countedwrappeeMethodExpr
- a regular expression that matches the
method(s) to be counted (within the classes or objects denoted
by the previous parameters)fieldName
- the name of the field that is used to optimize
the counting (the counter is incremented with its value), an
empty string has no effectargNumber
- the argument's index that is used to optimize
the counting (the counter is incremented with its value), an
empty string has no effectOptimizedCountingWrapper
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |