| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.common.util.spring.PropertySourceUtils
public class PropertySourceUtils
| Constructor Summary | |
|---|---|
PropertySourceUtils()
 | 
|
| Method Summary | |
|---|---|
static List<org.springframework.core.env.EnumerablePropertySource<?>> | 
asEnumerableList(List<org.springframework.core.env.PropertySource<?>> sources)
Create an EnumerablePropertySource list from a PropertySource list | 
static List<org.springframework.core.env.PropertySource<?>> | 
asList(org.springframework.core.env.PropertySource<?>... sources)
Null safe conversion of PropertySource>[] into List<PropertySource<?>> | 
static Properties | 
convert(org.springframework.core.env.EnumerablePropertySource<?> source)
Copy the key/value pairs from source into a java.util.Properties object. | 
static Properties | 
convert(List<org.springframework.core.env.EnumerablePropertySource<?>> sources)
Copy the key/value pairs from sources into a java.util.Properties object. | 
static List<org.springframework.core.env.PropertySource<?>> | 
extractPropertySourcesAndClose(org.springframework.context.ConfigurableApplicationContext context)
 | 
static Properties | 
getAllEnumerableProperties(org.springframework.core.env.ConfigurableEnvironment env)
Aggregate every property from every PropertySource in the ConfigurableEnvironment into a Properties object. | 
static ImmutableProperties | 
getEnvAsImmutableProperties(org.springframework.core.env.ConfigurableEnvironment env)
Aggregate every property from every PropertySource in the ConfigurableEnvironment into an Properties object. | 
static org.springframework.core.env.PropertySource<?> | 
getPropertySource(PropertiesService service,
                                   List<Location> locations)
 | 
static List<org.springframework.core.env.PropertySource<?>> | 
getPropertySources(Class<?> annotatedClass)
 | 
static List<org.springframework.core.env.PropertySource<?>> | 
getPropertySources(org.springframework.context.ConfigurableApplicationContext context)
Return all PropertySource beans registered in the context, sorted by name. | 
static List<org.springframework.core.env.PropertySource<?>> | 
getPropertySources(org.springframework.context.ConfigurableApplicationContext context,
                                     Comparator<org.springframework.core.env.PropertySource<?>> comparator)
Return all PropertySource beans registered in the context, sorted use comparator | 
static List<org.springframework.core.env.PropertySource<?>> | 
getPropertySources(org.springframework.core.env.ConfigurableEnvironment env)
Aggregate all PropertySource> | 
static SpringContext | 
getSinglePropertySourceContext(org.springframework.core.env.PropertySource<?> source)
Return a SpringContext such that source is the only thing Spring uses to resolve placeholders | 
static void | 
reconfigurePropertySources(org.springframework.core.env.ConfigurableEnvironment env,
                                                     String name,
                                                     Properties properties)
Remove all property sources from env and replace them with a single PropertiesPropertySource backed by properties | 
static void | 
removeAllPropertySources(org.springframework.core.env.ConfigurableEnvironment env)
Remove all property sources from env. | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public PropertySourceUtils()
| Method Detail | 
|---|
public static org.springframework.core.env.PropertySource<?> getPropertySource(PropertiesService service,
                                                                               List<Location> locations)
public static Properties getAllEnumerableProperties(org.springframework.core.env.ConfigurableEnvironment env)
PropertySource in the ConfigurableEnvironment into a Properties object.
IllegalArgumentException - If any PropertySource is not an EnumerablePropertySource or if any values are not java.lang.Stringpublic static ImmutableProperties getEnvAsImmutableProperties(org.springframework.core.env.ConfigurableEnvironment env)
PropertySource in the ConfigurableEnvironment into an Properties object.
IllegalArgumentException - If any PropertySource is not an EnumerablePropertySource or if any values are not java.lang.Stringpublic static List<org.springframework.core.env.EnumerablePropertySource<?>> asEnumerableList(List<org.springframework.core.env.PropertySource<?>> sources)
EnumerablePropertySource list from a PropertySource list
IllegalArgumentException - if any element in sources is not an EnumerablePropertySourcepublic static List<org.springframework.core.env.PropertySource<?>> getPropertySources(Class<?> annotatedClass)
public static List<org.springframework.core.env.PropertySource<?>> extractPropertySourcesAndClose(org.springframework.context.ConfigurableApplicationContext context)
public static Properties convert(org.springframework.core.env.EnumerablePropertySource<?> source)
source into a java.util.Properties object.
IllegalArgumentException - if any value is null or is not a java.lang.Stringpublic static Properties convert(List<org.springframework.core.env.EnumerablePropertySource<?>> sources)
sources into a java.util.Properties object.
IllegalArgumentException - if any value is null or is not a java.lang.Stringpublic static List<org.springframework.core.env.PropertySource<?>> getPropertySources(org.springframework.core.env.ConfigurableEnvironment env)
PropertySource> objects from the environment into a List
 
public static void reconfigurePropertySources(org.springframework.core.env.ConfigurableEnvironment env,
                                              String name,
                                              Properties properties)
env and replace them with a single PropertiesPropertySource backed by properties
public static void removeAllPropertySources(org.springframework.core.env.ConfigurableEnvironment env)
env.
public static List<org.springframework.core.env.PropertySource<?>> asList(org.springframework.core.env.PropertySource<?>... sources)
PropertySource>[] into List<PropertySource<?>>
public static List<org.springframework.core.env.PropertySource<?>> getPropertySources(org.springframework.context.ConfigurableApplicationContext context,
                                                                                      Comparator<org.springframework.core.env.PropertySource<?>> comparator)
PropertySource beans registered in the context, sorted use comparator
public static List<org.springframework.core.env.PropertySource<?>> getPropertySources(org.springframework.context.ConfigurableApplicationContext context)
PropertySource beans registered in the context, sorted by name.
public static SpringContext getSinglePropertySourceContext(org.springframework.core.env.PropertySource<?> source)
SpringContext such that source is the only thing Spring uses to resolve placeholders
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||