0 Replies Latest reply on Feb 19, 2010 2:06 PM by mksong

    Field annotation using JBoss AOP

    mksong


      Hello,


      I wanted to test 'field annotation' using JBoss AOP.

      However, the POJO, BankAccount was not be able to be enhanced.

      Is there the way to enhance it?


      * Very simple program has been attached.



      C:\..\JBossAOPTest4>ant

      Buildfile: build.xml


      prepare:


      compile:

         [delete] Deleting directory C:\tmp\aoptest\JBossAOPTest4\classes

          [mkdir] Created dir: C:\tmp\aoptest\JBossAOPTest4\classes

          [javac] Compiling 4 source files to C:\tmp\aoptest\JBossAOPTest4\classes


      aopc:

           [aopc] log4j:WARN No appenders could be found for logger (org.jboss.aop.instrument.InstrumentorFactory).

           [aopc] log4j:WARN Please initialize the log4j system properly.

           [aopc] [no comp needed] C:\tmp\aoptest\JBossAOPTest4\classes\bank\SecurityFieldAnnotation.class

           [aopc] [no comp needed] C:\tmp\aoptest\JBossAOPTest4\classes\bank\SecurityFieldAspect.class

           [aopc] [no comp needed] C:\tmp\aoptest\JBossAOPTest4\classes\bank\BankAccount.class

           [aopc] [no comp needed] C:\tmp\aoptest\JBossAOPTest4\classes\bank\Bank.class

           [aopc] Build Successful: 547 ms


      run-compile-time:

           [java] [DBG] credit: 777


      BUILD SUCCESSFUL

      Total time: 3 seconds