--- /dev/null
+public class Code {
+ public static void main(String[]argv) {
+ new Code().run();
+ }
+
+ public void run() {
+ System.out.println("running...");
+ }
+}
\ No newline at end of file
--- /dev/null
+public abstract aspect Isolator<T> {
+
+ pointcut scope(): within(T);
+
+ before(): execution(* *(..)) && scope() {
+ System.out.println(thisJoinPoint);
+ }
+}
\ No newline at end of file
--- /dev/null
+<aspectj>
+<aspects>
+ <concrete-aspect name="IsolatorForCode" extends="Isolator<Code>"/>
+</aspects>
+<weaver options="-showWeaveInfo">
+</weaver>
+</aspectj>
+