From: jhaile (s. by Nabble.com) <li...@na...> - 2005-12-30 20:10:50
|
Well, one option would be to leave the defaults as they are now, but enhance the "constructor guessing" in PermissionAnnotationAuthorizationModule. All we need to do is catch NoSuchMethodException when getting the declared constructor. I would assume the guessing would go something like this: 1) First check for the two arg constructor. (target, action) 2) Check for a single arg constructor (only action) 3) Check for a no-arg constructor. This would of course be specified in JavaDoc and referenced both by the PermissionAnnotationAuthorizationModule and the HasPermission annotation classes. -- Sent from the Developer forum at Nabble.com: http://www.nabble.com/HasPermission-default-target-and-actions-t826978c13668.html#a2147481 |