Hi there, I'm not sure this is entirely correct - Shiro implements AOP Alliance interceptors in it's Spring module. We also support AspectJ-style AOP. Does the AOP Alliance stuff that we currently have need to be split into its own AOP Alliance module?
I wasn't aware of significant adoption of the AOP Alliance APIs outside of the Spring community. It sounds like Guice may use it too - is this correct? Les On Tue, Mar 8, 2011 at 12:05 PM, whodevil <[email protected]> wrote: > Excerpts from Mark Engel's message of Wed Mar 02 21:58:54 -0800 2011: >> Hello, >> >> i tried to use Apache Shiro with Google Guice in a Servlet, but the >> Dependency Injection does not work. >> When I try to access a function that is protected by shiro I get an >> error about a wrong configuration >> >> org.apache.shiro.UnavailableSecurityManagerException: No >> SecurityManager accessible to the calling code, either bound to the >> org.apache.shiro.util.ThreadContext or as a vm static singleton. This >> is an invalid application configuration. >> >> I created an example project which uses Apache Shiro, Google Guice and >> Jersey to bootstrap an example rest api which you can find on github >> (https://github.com/mren/java-rest-boilerplate) >> >> Could you help me to get this application running with Shiro? >> This project could be shown on the website as an example on how to use >> Shiro with other IoC Containers thant Spring. >> >> What is the cleanest way to use Shiro with Guice? > > > Hello, > > I just recently had to go through this. Basically shiro uses non AOP alliance > method injector/interceptors. In order get shiro to work with guice I had > write > a couple adapter classes. > > I hope this helps. > --whodevil
