1
0
mirror of synced 2026-08-05 01:36:56 +00:00

Changed method protection config to make it compatible with MethodDefinitionMap for the time being.

This commit is contained in:
Luke Taylor
2007-10-14 14:29:15 +00:00
parent a4b522351f
commit c51bcd9c1f
3 changed files with 80 additions and 9 deletions
@@ -44,7 +44,10 @@ public class InterceptMethodsBeanDefinitionDecorator extends AbstractInterceptor
String accessConfig = protectmethodElt.getAttribute("access");
attributeEditor.setAsText(accessConfig);
methodMap.addSecureMethod(targetClass, protectmethodElt.getAttribute("method"),
// TODO: We want to use just the method names, but MethodDefinitionMap won't work that way.
// methodMap.addSecureMethod(targetClass, protectmethodElt.getAttribute("method"),
// (ConfigAttributeDefinition) attributeEditor.getValue());
methodMap.addSecureMethod(protectmethodElt.getAttribute("method"),
(ConfigAttributeDefinition) attributeEditor.getValue());
}