[ 
https://issues.apache.org/jira/browse/SHIRO-129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jean-Cédric Desrochers updated SHIRO-129:
-----------------------------------------

    Attachment: shiro example bank service.zip

a little sample bank service I'm giving as well to have a more concrete example 
of how to use the aspectj integration.

The content of the zip file is:
 - java/src: main source code of the sample
 - java/test: unit tests
 - conf: configuration files for shiro and the aspectj weaver tool
 - lib: required jar files to compile and run the test cases

To run the test cases you need to:
1) define the following vm argument: -javaagent:./lib/aspectjweaver.jar (where 
./lib/spectjweaver.jar is the path to the weaver tool)
2) add in the classpath the conf/ directory and the jars of the lib/ directory

Upon VM launch, the weaver tool will look for the META-INF/aop.xml file (in the 
conf/ directory) to discover the aspects to apply and the scope of the weavable 
classes.  It is currently configured for the classes of the BankService sample.

I did not make a runnable little application to demonstrate the BankService in 
action, for me the test cases are self-explanatory.


> Aspecjt integration for annotation base authorization
> -----------------------------------------------------
>
>                 Key: SHIRO-129
>                 URL: https://issues.apache.org/jira/browse/SHIRO-129
>             Project: Shiro
>          Issue Type: New Feature
>            Reporter: Jean-Cédric Desrochers
>         Attachments: shiro example bank service.zip, shiro-aspectj 
> integration.zip
>
>
> Here's the code I'm donating to the Shiro project to use aspectj as the aop 
> kit to perform authorization of method invocation based on the defined 
> Shiro's annotation.
> The zip files contains the following:
>  - java/src: source files to adapt an aspectj joint point to a shiro method 
> invocation
>  - java/test: unit test classes
> - conf: configuration file for the test cases
> To compile and run properly, the code requires the following:
>  - junit jar
>  - shiro jar
>  - aspectj jars (I used AJDT within eclipse, so everything was integrated)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to