Examples of EnumerablePropertySource


Examples of org.springframework.core.env.EnumerablePropertySource

            propertyNames = new ArrayList<String>();
            Environment env = Environment.getCurrent();
            String key = "environments." + env.getName();
            for(PropertySource propertySource : source) {
                if((propertySource != this) && propertySource instanceof EnumerablePropertySource) {
                    EnumerablePropertySource enumerablePropertySource = (EnumerablePropertySource)propertySource;

                    for(String propertyName : enumerablePropertySource.getPropertyNames()) {
                        if(propertyName.startsWith(key)) {
                            propertyNames.add(propertyName.substring(key.length() + 1));
                        }
                    }
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.