Spring Security
  1. Spring Security
  2. SEC-1284

Support 'proxy-target-class' attribute for global-method-security element of security namespace

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.5
    • Fix Version/s: 3.0.0.RC2
    • Component/s: Namespace
    • Labels:
      None

      Description

      Expected: <sec:global-method-security/> should expose a proxy-target-class attribute, following suit with <tx:annotation-driven/>, <aop:config/>, etc.

      Actual: It does not expose this attribute, and so users are forced to work around the namespace and drop down to low-level bean defs if they need to influence the proxy creation strategy.

        Issue Links

          Activity

          Hide
          Luke Taylor added a comment -

          The only requirement here is that the namespace schema supports the attribute. AopNamespaceUtils.registerAutoProxyCreatorIfNecessary(), which is called by GlobalMethodSecurityBDP, will check for the attribute on the source element and do the necessary work. So no Java code-level changes are necessary.

          Show
          Luke Taylor added a comment - The only requirement here is that the namespace schema supports the attribute. AopNamespaceUtils.registerAutoProxyCreatorIfNecessary(), which is called by GlobalMethodSecurityBDP, will check for the attribute on the source element and do the necessary work. So no Java code-level changes are necessary.

            People

            • Assignee:
              Luke Taylor
              Reporter:
              Chris Beams
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: