Has anyone needed MethodSecurityInterceptor to support overloading? I've got a MethodSecurityInterceptor defined against a service like this:
Now, say I overload "update" like this:Code:<bean id="..." class="net.sf.acegisecurity.intercept.method.MethodSecurityInterceptor"> <property name="authenticationManager"><ref bean="authenticationManager"/></property> <property name="accessDecisionManager"><ref bean="businessAccessDecisionManager"/></property> <property name="runAsManager"><ref bean="runAsManager"/></property> <property name="objectDefinitionSource"> <value> com.mypackage.MyInterface.update=ROLE_MYROLE </value> </property> </bean>
How would I assign a different set of roles to each method? Currently, since both methods have the same name, I am forced to use the same roles for each, right?Code:void update(MyObject object); void update(MyOtherObject object);
Thanks,
Andy


