public class SystemAopPointcutDefinitions extends Object
It is good to have a class that has common aop pointcuts for your application. These can be reused and built upon elsewhere. Note cglib requires a noarg constructor. It can be private. You would also have to have setters for any of the values that the actual constructor (say a 2 arg constructor takes). These can also be private.
Created by stevesouza on 5/26/14.Constructor and Description |
---|
SystemAopPointcutDefinitions() |
Modifier and Type | Method and Description |
---|---|
void |
anyPublicMethod()
Pointcut that would monitor any public methods
|
void |
monitorAnnotatedClass()
The pointcut below will find all methods in all types marked with @MonitorAnnotation
|
void |
monitorAnnotatedMethod()
The pointcut below will find all methods marked with @MonitorAnnotation
|
public void anyPublicMethod()
public void monitorAnnotatedClass()
public void monitorAnnotatedMethod()
Copyright © 2015. All rights reserved.