From f0e7118cd2e6a85d9842b160ecb45869bf2ec788 Mon Sep 17 00:00:00 2001 From: acolyer Date: Mon, 17 May 2004 09:00:54 +0000 Subject: [PATCH] AOPAlliance adapter sample --- docs/developer/ajdt/ajdt.core.workitems.txt | 2 +- docs/sandbox/aopalliance/.cvsignore | 1 + docs/sandbox/aopalliance/aopalliance.jar | Bin 0 -> 4467 bytes .../aopalliance/lib/aj-aopalliance.jar | Bin 0 -> 6402 bytes docs/sandbox/aopalliance/readme.txt | 21 +++++ .../aspectj/aopalliance/AOPAllianceAdapter.aj | 72 +++++++++++++++++ .../ConstructorInvocationClosure.java | 32 ++++++++ .../InvocationJoinPointClosure.java | 54 +++++++++++++ .../aspectj/aopalliance/JoinPointClosure.java | 50 ++++++++++++ .../aopalliance/MethodInvocationClosure.java | 33 ++++++++ .../tests/AOPAllianceAdapterTest.java | 19 +++++ .../aspectj/aopalliance/tests/AllTests.java | 19 +++++ .../ConstructorInvocationClosureTest.java | 39 +++++++++ .../org/aspectj/aopalliance/tests/Hello.java | 24 ++++++ .../tests/HelloAOPAllianceAdapter.aj | 28 +++++++ .../tests/HelloConstructionInterceptor.java | 21 +++++ .../tests/HelloMethodInterceptor.java | 20 +++++ .../tests/InvocationJoinPointClosureTest.java | 76 ++++++++++++++++++ .../tests/JoinPointClosureTest.java | 45 +++++++++++ .../tests/MethodInvocationClosureTest.java | 27 +++++++ .../tests/MockConstructorSignature.java | 16 ++++ .../aopalliance/tests/MockJoinPoint.java | 53 ++++++++++++ .../tests/MockMethodSignature.java | 18 +++++ .../aopalliance/tests/MockSignature.java | 51 ++++++++++++ 24 files changed, 720 insertions(+), 1 deletion(-) create mode 100644 docs/sandbox/aopalliance/.cvsignore create mode 100644 docs/sandbox/aopalliance/aopalliance.jar create mode 100644 docs/sandbox/aopalliance/lib/aj-aopalliance.jar create mode 100644 docs/sandbox/aopalliance/readme.txt create mode 100644 docs/sandbox/aopalliance/src/org/aspectj/aopalliance/AOPAllianceAdapter.aj create mode 100644 docs/sandbox/aopalliance/src/org/aspectj/aopalliance/ConstructorInvocationClosure.java create mode 100644 docs/sandbox/aopalliance/src/org/aspectj/aopalliance/InvocationJoinPointClosure.java create mode 100644 docs/sandbox/aopalliance/src/org/aspectj/aopalliance/JoinPointClosure.java create mode 100644 docs/sandbox/aopalliance/src/org/aspectj/aopalliance/MethodInvocationClosure.java create mode 100644 docs/sandbox/aopalliance/testsrc/org/aspectj/aopalliance/tests/AOPAllianceAdapterTest.java create mode 100644 docs/sandbox/aopalliance/testsrc/org/aspectj/aopalliance/tests/AllTests.java create mode 100644 docs/sandbox/aopalliance/testsrc/org/aspectj/aopalliance/tests/ConstructorInvocationClosureTest.java create mode 100644 docs/sandbox/aopalliance/testsrc/org/aspectj/aopalliance/tests/Hello.java create mode 100644 docs/sandbox/aopalliance/testsrc/org/aspectj/aopalliance/tests/HelloAOPAllianceAdapter.aj create mode 100644 docs/sandbox/aopalliance/testsrc/org/aspectj/aopalliance/tests/HelloConstructionInterceptor.java create mode 100644 docs/sandbox/aopalliance/testsrc/org/aspectj/aopalliance/tests/HelloMethodInterceptor.java create mode 100644 docs/sandbox/aopalliance/testsrc/org/aspectj/aopalliance/tests/InvocationJoinPointClosureTest.java create mode 100644 docs/sandbox/aopalliance/testsrc/org/aspectj/aopalliance/tests/JoinPointClosureTest.java create mode 100644 docs/sandbox/aopalliance/testsrc/org/aspectj/aopalliance/tests/MethodInvocationClosureTest.java create mode 100644 docs/sandbox/aopalliance/testsrc/org/aspectj/aopalliance/tests/MockConstructorSignature.java create mode 100644 docs/sandbox/aopalliance/testsrc/org/aspectj/aopalliance/tests/MockJoinPoint.java create mode 100644 docs/sandbox/aopalliance/testsrc/org/aspectj/aopalliance/tests/MockMethodSignature.java create mode 100644 docs/sandbox/aopalliance/testsrc/org/aspectj/aopalliance/tests/MockSignature.java diff --git a/docs/developer/ajdt/ajdt.core.workitems.txt b/docs/developer/ajdt/ajdt.core.workitems.txt index 92ae2f8e6..866931ff8 100644 --- a/docs/developer/ajdt/ajdt.core.workitems.txt +++ b/docs/developer/ajdt/ajdt.core.workitems.txt @@ -248,7 +248,7 @@ I'm not sure what user interface features need this... 17) Version upgrade ============================================================================= 17.1) port to Eclipse 3.0 M9 -17.2) port to Eclipse 2.0 final +17.2) port to Eclipse 3.0 final 18) JDT DEBUG ============================================================================= diff --git a/docs/sandbox/aopalliance/.cvsignore b/docs/sandbox/aopalliance/.cvsignore new file mode 100644 index 000000000..ba077a403 --- /dev/null +++ b/docs/sandbox/aopalliance/.cvsignore @@ -0,0 +1 @@ +bin diff --git a/docs/sandbox/aopalliance/aopalliance.jar b/docs/sandbox/aopalliance/aopalliance.jar new file mode 100644 index 0000000000000000000000000000000000000000..578b1a0c359ef88a84461bdb91d9d0041afd54de GIT binary patch literal 4467 zcma)A2|U#48y|x)nAW`pC0Fh+hK>(mSQExE#+fUOGxy98n`DNp))6L0jvP(vFDYVc z9U&z`u0#i+B}Yo-NK*ah$6B-VXa4)l=Qs1tXWsX@-skx~&ofvII|mO4AeoayjrGM} zZ`|}x3u9Z7aZEV#n&ujRG^F!H(yMCwF?$bg>?yQ zQ7{X_(MW32$0U^`433y2qPvi>q!m>gSqs8qxS+?}-Cd8<#Rt$IK*8!H3H1mJ^!EtHd$ZUL7!2@Z+)ZDzI3d2x3IAY{Hv#V*N@8#=^9@LCa}JP% z@`~`sd#m9CJ%~h|rH~;#2n2E(5)lEBM?=ciN=RStuTk#j=Xc$2n6Tw{9z|SHMIO#9 zAfHV~NvTw+TI(wy)LlpQl~lBA4?o$DRLD#xOO)92(UMcr$?4>aY+$&U zBUw&}U1HtYH;_;M^rkBmMt`=Vfmvmxom3`BxQawy4U(9W)aP)Q%rSc9YR-FgW(2mJC#{R3@HIIfQ5t`+t*>(rA}LyU9N@W|XH z;=9_DA>Y=%E=k0ak8lUUgi`a6=B0kG7qa|)YoAJ}T#@PdS>kwg!}PJ#{lx_yE0;e% z)B5;Z0rF*LP>=HaH>V(F&6s`2HnCSa+QW@gP7!MNq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