Package com.springsource.util.common

Examples of com.springsource.util.common.PropertyPlaceholderResolver


        this.properties = properties;
    }

    public void modify(ManifestContents manifest) {
        PlaceholderValueTransformer transformer = new VersionExpansionTransformer(manifest);
        PropertyPlaceholderResolver placeholderResolver = new PropertyPlaceholderResolver();

        for (Entry<String, String> entry : manifest.getMainAttributes().entrySet()) {
            String key = entry.getKey();
            String value = entry.getValue();
            manifest.getMainAttributes().put(key, placeholderResolver.resolve(value, this.properties, transformer));
        }
       
        for(String name : manifest.getSectionNames()) {
            for(Entry<String, String> entry : manifest.getAttributesForSection(name).entrySet()) {
                String key = entry.getKey();
                String value = entry.getValue();
                manifest.getAttributesForSection(name).put(key, placeholderResolver.resolve(value, this.properties, transformer));
            }
        }
    }
View Full Code Here

TOP

Related Classes of com.springsource.util.common.PropertyPlaceholderResolver

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.