SpringSource/spring-security-oauth — pull request #40 by rwinch (2012-06-15 15:26:16+00:00)
Title: SECOAUTH-291: Remove OAuth2MethodResolver in favor of setting a variable...

... on the StandardEvaluationContext

A few comments on some of the changes

* I renamed `OAuth2SecurityExpressionRoot` to `OAuth2SecurityExpressionMethods` since it is no longer set as a root object for the OAuth SpEL `EvalulationContext` (it is a variable with some methods related to OAuth2 now)
* I removed oauth prefix from the method names since the prefix is in the variable name (it would be weird to have `#oauth2.oauthClientHasRole` instead we have `#oauth2.clientHasRole`)
* We could change the variable name if you do not like `#oauth2`
* We could allow others to inject the variable name but for now I thought it would be nice to apply KISS