I might be wrong, but i think a can remember
that annotations from interfaces are NOT inherited, so how would
you share these with sub classes?
seen here
http://www.eclipse.org/aspectj/doc/released/adk15notebook/annotations.html:
"A type that implements one or more interfaces never inherits any
annotations from the interfaces it implements."
W
Jean-Cédric Desrochers wrote:
We do not use Spring hre... so I took the time to integrate Shiro with AspectJ
(the code is in the trunk). The way I did it was to add an advice before each
method call. That way each invocation made in the class hierarchy is validated
against the current context and the annotations found. I'm sure there might be
a way to do the same to the Spring integration.
J-C
On 22-Feb-2010, at 10:29, aloleary wrote:
I initially had some issues getting Shiro annotations to work on impl classes
(Using Shiro+Spring) I will re-visit as I agree that not having them on
Interface is a good thing - maybe this issues is now resolved - it has been
some time since I did this.
However I guess my question is more w.r.t. a Generic Impl. class - how to
ask Shiro the 'right' question for the class that exists only at runtime
after Type Erasure.
--
View this message in context:
http://n2.nabble.com/Security-on-Generic-interfaces-tp4607155p4612727.html
Sent from the Shiro User mailing list archive at Nabble.com.
--
Willi Schoenborn / Software Development
__ CosmoCode GmbH - http://www.cosmocode.de
__ Prenzlauer Allee 36, 10405 Berlin, Germany
__ Tel +49 30 814504087, Fax +49 30 28097093
__
__ Geschaeftsfuehrung (CEO): D. Huettemann, J. Riebesell
__ Amtsgericht Berlin-Charlottenburg, HRB 74063