1
0
mirror of synced 2026-08-04 17:27:13 +00:00

SEC-1201: PropertyPlaceholderConfigurer does not work for intercept-url attributes. Added use of ManagedMaps and BeanDefinitions to support placeholders in the pattern and access attributes.

This commit is contained in:
Luke Taylor
2009-08-22 21:09:34 +00:00
parent 0b5160d155
commit 9bf8656d66
5 changed files with 190 additions and 71 deletions
@@ -19,6 +19,7 @@ import java.util.ArrayList;
import java.util.List;
import org.springframework.util.Assert;
import org.springframework.util.StringUtils;
/**
* Stores a {@link ConfigAttribute} as a <code>String</code>.
@@ -62,7 +63,11 @@ public class SecurityConfig implements ConfigAttribute {
return this.attrib;
}
public static List<ConfigAttribute> createList(String... attributeNames) {
public final static List<ConfigAttribute> createListFromCommaDelimitedString(String access) {
return createList(StringUtils.commaDelimitedListToStringArray(access));
}
public final static List<ConfigAttribute> createList(String... attributeNames) {
Assert.notNull(attributeNames, "You must supply a list of argument names");
List<ConfigAttribute> attributes = new ArrayList<ConfigAttribute>(attributeNames.length);