public class PropertySources extends Object
PropertySources.| Constructor and Description | 
|---|
| PropertySources() | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | addFirst(org.springframework.context.ConfigurableApplicationContext context,
                org.springframework.core.env.PropertySource<?> propertySource)Register  propertySourceas the first thing Spring will check when looking up property
 values. | 
| protected static void | checkSizeEqualsOne(Collection<?> collection,
                                    Class<?> annotatedClass) | 
| static Properties | convert(javax.servlet.ServletContext context)Convert  ServletContextinit parameters into aPropertiesobject. | 
| static com.google.common.base.Optional<String> | getProperty(javax.servlet.ServletContextEvent sce,
                      String key)Examine both system properties and servlet context init parameters for the presence of a
 value under  key. | 
| protected static org.springframework.core.env.PropertySource<?> | getPropertySource(org.springframework.beans.factory.ListableBeanFactory factory,
                                  Class<?> annotatedClass) | 
| static com.google.common.base.Optional<org.springframework.core.env.PropertySource<?>> | getPropertySource(javax.servlet.ServletContextEvent sce,
                                  String key)Check system properties and servlet context init params for an annotated Spring configuration
 class located under  key. | 
| protected static org.springframework.core.env.PropertySource<?> | getPropertySource(String className,
                                  org.springframework.web.context.support.AnnotationConfigWebApplicationContext context) | 
| protected static boolean | isPlaceHolder(String value) | 
public PropertySources()
public static com.google.common.base.Optional<org.springframework.core.env.PropertySource<?>> getPropertySource(javax.servlet.ServletContextEvent sce, String key)
key. If present, create a new
  and register
 the annotated configuration class. Refresh the context and then examine it for a
 PropertySource<?> bean. There must be exactly one PropertySource<?> bean
 present in the application context.public static void addFirst(org.springframework.context.ConfigurableApplicationContext context, org.springframework.core.env.PropertySource<?> propertySource)
propertySource as the first thing Spring will check when looking up property
 values.protected static org.springframework.core.env.PropertySource<?> getPropertySource(String className, org.springframework.web.context.support.AnnotationConfigWebApplicationContext context)
protected static org.springframework.core.env.PropertySource<?> getPropertySource(org.springframework.beans.factory.ListableBeanFactory factory, Class<?> annotatedClass)
protected static void checkSizeEqualsOne(Collection<?> collection, Class<?> annotatedClass)
public static com.google.common.base.Optional<String> getProperty(javax.servlet.ServletContextEvent sce, String key)
key.public static Properties convert(javax.servlet.ServletContext context)
ServletContext init parameters into a Properties object.protected static boolean isPlaceHolder(String value)
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.