org.kuali.common.util.spring
Class SpringUtils

java.lang.Object
  extended by org.kuali.common.util.spring.SpringUtils

public class SpringUtils
extends Object


Constructor Summary
SpringUtils()
           
 
Method Summary
static List<org.springframework.core.env.PropertySource<?>> asList(org.springframework.core.env.PropertySource<?>... sources)
          Deprecated. 
static void closeQuietly(org.springframework.context.ConfigurableApplicationContext context)
          Null safe close for a context
static Properties convert(org.springframework.core.env.EnumerablePropertySource<?> source)
          Deprecated. 
static PropertySourceConversionResult convertEnumerablePropertySources(List<org.springframework.core.env.PropertySource<?>> sources)
          Deprecated. 
static void debug(org.springframework.context.ApplicationContext ctx)
           
static void debugQuietly(org.springframework.context.ApplicationContext ctx)
           
static boolean exists(org.springframework.core.env.Environment env, String key)
          Return true if the environment value for key is not null.
static List<org.springframework.core.env.PropertySource<?>> extractPropertySourcesAndClose(org.springframework.context.ConfigurableApplicationContext context)
          Deprecated. 
static
<T> Map<String,T>
getAllBeans(org.springframework.context.ConfigurableApplicationContext ctx, Class<T> type)
           
static
<T> Map<String,T>
getAllBeans(List<String> locations, Class<T> type)
           
static
<T> Map<String,T>
getAllBeans(String location, Class<T> type)
           
static Properties getAllEnumerableProperties(org.springframework.core.env.ConfigurableEnvironment env)
          Deprecated. 
static boolean getBoolean(org.springframework.core.env.Environment env, String key)
           
static boolean getBoolean(org.springframework.core.env.Environment env, String key, boolean defaultValue)
           
static long getBytes(org.springframework.core.env.Environment env, String key)
          Parse bytes from a size string that ends with a unit of measure.
static long getBytes(org.springframework.core.env.Environment env, String key, String defaultValue)
          Parse bytes from a size string that ends with a unit of measure.
static int getBytesInteger(org.springframework.core.env.Environment env, String key)
          Parse bytes from a size string that ends with a unit of measure.
static int getBytesInteger(org.springframework.core.env.Environment env, String key, String defaultValue)
          Parse bytes from a size string that ends with a unit of measure.
static org.springframework.context.ConfigurableApplicationContext getConfigurableApplicationContext()
          Deprecated. 
static org.springframework.context.ConfigurableApplicationContext getContextWithPreRegisteredBean(String beanName, Object bean)
          Deprecated. 
static org.springframework.context.ConfigurableApplicationContext getContextWithPreRegisteredBeans(List<String> beanNames, List<Object> beans)
          Deprecated. 
static org.springframework.context.ConfigurableApplicationContext getContextWithPreRegisteredBeans(String id, String displayName, List<String> beanNames, List<Object> beans)
          Deprecated. 
static org.springframework.context.support.AbstractApplicationContext getContextWithPreRegisteredBeans(String id, String displayName, Map<String,?> beans)
           
static String getDefaultPropertyContextLocation(String gav)
          Deprecated. 
static double getDouble(org.springframework.core.env.Environment env, String key)
           
static double getDouble(org.springframework.core.env.Environment env, String key, double defaultValue)
           
static List<String> getExcludes(org.springframework.core.env.Environment env, String key)
           
static List<String> getExcludes(org.springframework.core.env.Environment env, String key, String defaultValue)
           
static File getFile(org.springframework.core.env.Environment env, String key)
           
static File getFile(org.springframework.core.env.Environment env, String key, File defaultValue)
           
static List<File> getFilesFromCSV(org.springframework.core.env.Environment env, String key)
           
static List<File> getFilesFromCSV(org.springframework.core.env.Environment env, String key, String defaultValue)
           
static org.springframework.core.env.PropertySource<?> getGlobalPropertySource(List<String> locations, String encoding)
          Deprecated. 
static org.springframework.core.env.PropertySource<?> getGlobalPropertySource(ProjectContext project, List<ProjectContext> others)
          Deprecated. 
static org.springframework.core.env.PropertySource<?> getGlobalPropertySource(ProjectContext project, List<ProjectContext> others, Properties properties)
          Deprecated. 
static org.springframework.core.env.PropertySource<?> getGlobalPropertySource(ProjectContext project, Mode missingLocationsMode)
          Deprecated. 
static org.springframework.core.env.PropertySource<?> getGlobalPropertySource(ProjectContext project, Mode missingLocationsMode, List<ProjectContext> others)
          Deprecated. 
static org.springframework.core.env.PropertySource<?> getGlobalPropertySource(ProjectContext project, Mode missingLocationsMode, ProjectContext... others)
          Deprecated. 
static org.springframework.core.env.PropertySource<?> getGlobalPropertySource(ProjectContext project, ProjectContext other)
          Deprecated. 
static org.springframework.core.env.PropertySource<?> getGlobalPropertySource(ProjectContext context, String... locations)
          Deprecated. 
static org.springframework.core.env.PropertySource<?> getGlobalPropertySource(ProjectProperties project)
          Deprecated. 
static org.springframework.core.env.PropertySource<?> getGlobalPropertySource(ProjectProperties projectProperties, List<ProjectContext> others, Properties properties)
          Deprecated. 
static org.springframework.core.env.PropertySource<?> getGlobalPropertySource(ProjectProperties project, List<ProjectProperties> others)
          Deprecated. 
static org.springframework.core.env.PropertySource<?> getGlobalPropertySource(Properties properties)
          Deprecated. 
static org.springframework.core.env.PropertySource<?> getGlobalPropertySource(String name, List<ProjectProperties> pps)
          Deprecated. 
static List<String> getIncludes(org.springframework.core.env.Environment env, String key)
           
static List<String> getIncludes(org.springframework.core.env.Environment env, String key, String defaultValue)
           
static
<T> T
getInstance(org.springframework.core.env.Environment env, String key)
          Given a property holding the name of a class, return an instance of that class
static
<T> T
getInstance(org.springframework.core.env.Environment env, String key, Class<T> defaultValue)
          Given a property holding the name of a class, return an instance of that class
static int getInteger(org.springframework.core.env.Environment env, String key)
           
static int getInteger(org.springframework.core.env.Environment env, String key, int defaultValue)
           
static List<String> getListFromCSV(org.springframework.core.env.Environment env, String key)
           
static List<String> getListFromCSV(org.springframework.core.env.Environment env, String key, String defaultValue)
           
static long getLong(org.springframework.core.env.Environment env, String key)
           
static long getLong(org.springframework.core.env.Environment env, String key, long defaultValue)
           
static long getMillis(EnvironmentService env, String key, String defaultValue)
          Parse milliseconds from a time string that ends with a unit of measure.
static long getMillis(org.springframework.core.env.Environment env, String key, String defaultValue)
          Parse milliseconds from a time string that ends with a unit of measure.
static List<String> getNoneSensitiveListFromCSV(EnvironmentService env, String key)
          If the CSV value evaluates to null, "null", "none" or the empty string, return an empty list.
static List<String> getNoneSensitiveListFromCSV(EnvironmentService env, String key, String defaultValue)
          If the CSV value evaluates to null, "null", "none" or the empty string, return an empty list.
static List<String> getNoneSensitiveListFromCSV(org.springframework.core.env.Environment env, String key)
          If the CSV value evaluates to null, "null", "none" or the empty string, return an empty list.
static List<String> getNoneSensitiveListFromCSV(org.springframework.core.env.Environment env, String key, String defaultValue)
          If the CSV value evaluates to null, "null", "none" or the empty string, return an empty list.
static String getProperty(org.springframework.core.env.Environment env, String key)
          Get a fully resolved property value from the environment.
static String getProperty(org.springframework.core.env.Environment env, String key, String defaultValue)
          Always return a fully resolved value.
static org.springframework.core.env.PropertySource<?> getPropertySource(String name, List<ProjectProperties> pps)
          Deprecated. 
static List<org.springframework.core.env.PropertySource<?>> getPropertySources(Class<?> annotatedClass)
          Deprecated. 
static List<org.springframework.core.env.PropertySource<?>> getPropertySources(Class<?> annotatedClass, String propertiesBeanName, Properties properties)
          Deprecated. 
static List<org.springframework.core.env.PropertySource<?>> getPropertySources(Class<?> annotatedClass, String propertiesBeanName, Properties properties, List<String> activeProfiles, List<String> defaultProfiles)
          Deprecated. 
static List<org.springframework.core.env.PropertySource<?>> getPropertySources(org.springframework.context.ConfigurableApplicationContext context)
          Deprecated. 
static List<org.springframework.core.env.PropertySource<?>> getPropertySources(org.springframework.context.ConfigurableApplicationContext context, Comparator<org.springframework.core.env.PropertySource<?>> comparator)
          Deprecated. 
static List<org.springframework.core.env.PropertySource<?>> getPropertySources(org.springframework.core.env.ConfigurableEnvironment env)
          Deprecated. 
static List<org.springframework.core.env.PropertySource<?>> getPropertySources(SpringService service, Class<?> annotatedClass, String propertiesBeanName, Properties properties)
          Deprecated. 
static List<org.springframework.core.env.PropertySource<?>> getPropertySources(SpringService service, String location, String mavenPropertiesBeanName, Properties mavenProperties)
          Deprecated. 
static List<org.springframework.core.env.PropertySource<?>> getPropertySources(String location)
          Deprecated. 
static List<org.springframework.core.env.PropertySource<?>> getPropertySources(String location, String propertiesBeanName, Properties properties)
          Deprecated. 
static List<org.springframework.core.env.PropertySource<?>> getPropertySources(String location, String propertiesBeanName, Properties properties, List<String> activeProfiles, List<String> defaultProfiles)
          Deprecated. 
static List<org.springframework.core.env.PropertySource<?>> getPropertySourcesFromAnnotatedClass(String annotatedClassName)
          Deprecated. 
static org.springframework.core.env.PropertySource<?> getSinglePropertySource(Class<?> annotatedClass)
          Deprecated. 
static org.springframework.core.env.PropertySource<?> getSinglePropertySource(Class<?> annotatedClass, String propertiesBeanName, Properties properties)
          Deprecated. 
static SpringContext getSinglePropertySourceContext(List<String> locations, String encoding)
          Deprecated. 
static SpringContext getSinglePropertySourceContext(ProjectContext context, String location)
          Deprecated. 
static SpringContext getSinglePropertySourceContext(org.springframework.core.env.PropertySource<?> source)
          Deprecated. 
static SpringContext getSpringContext(Class<?> annotatedClass, ProjectContext project, List<ProjectContext> others)
          Deprecated. 
static SpringContext getSpringContext(List<Class<?>> annotatedClasses, ProjectContext project, List<ProjectContext> others)
          Deprecated. 
static SpringExecutable getSpringExecutable(Class<?> annotatedClass, String location, ProjectContext... projects)
          Deprecated. 
static Executable getSpringExecutable(org.springframework.core.env.Environment env, boolean skip, org.springframework.core.env.PropertySource<?> ps, List<Class<?>> annotatedClasses)
          Deprecated. 
static SpringExecutable getSpringExecutable(ProjectContext project, String location, Class<?> annotatedClass)
          Deprecated. 
static SpringExecutable getSpringExecutable(ProjectContext project, String location, List<Class<?>> annotatedClasses)
          Deprecated. 
static SpringExecutable getSpringExecutable(PropertiesSupplier supplier, Class<?> annotatedClass)
          Deprecated. 
static SpringExecutable getSpringExecutable(PropertiesSupplier supplier, List<Class<?>> annotatedClasses)
          Deprecated. 
static SpringExecutable getSpringExecutable(org.springframework.core.env.PropertySource<?> source, Class<?> annotatedClass)
          Deprecated. 
static int getValidatedIntValue(Long value)
          Throw IllegalArgumentException if value is outside the range of an Integer, otherwise return the Integer value.
static boolean isTrue(org.springframework.core.env.Environment env, String property)
          Return true if, and only if, property is set in the environment and evaluates to true.
static void reconfigurePropertySources(org.springframework.core.env.ConfigurableEnvironment env, String name, Properties properties)
          Deprecated. 
static void refreshQuietly(org.springframework.context.ConfigurableApplicationContext context)
          Null safe refresh for a context
static void removeAllPropertySources(org.springframework.core.env.ConfigurableEnvironment env)
          Deprecated. 
static void setupProfiles(org.springframework.context.ConfigurableApplicationContext ctx, List<String> activeProfiles, List<String> defaultProfiles)
           
static void showPropertySources(org.springframework.core.env.ConfigurableEnvironment env)
          Deprecated. 
static void showPropertySources(List<org.springframework.core.env.PropertySource<?>> propertySources)
          Deprecated. 
static void validateExists(List<String> locations)
          Deprecated. 
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringUtils

public SpringUtils()
Method Detail

getSpringContext

@Deprecated
public static SpringContext getSpringContext(List<Class<?>> annotatedClasses,
                                                        ProjectContext project,
                                                        List<ProjectContext> others)
Deprecated. 


getSpringContext

@Deprecated
public static SpringContext getSpringContext(Class<?> annotatedClass,
                                                        ProjectContext project,
                                                        List<ProjectContext> others)
Deprecated. 


getGlobalPropertySource

@Deprecated
public static org.springframework.core.env.PropertySource<?> getGlobalPropertySource(ProjectContext project,
                                                                                                ProjectContext other)
Deprecated. 


getGlobalPropertySource

@Deprecated
public static org.springframework.core.env.PropertySource<?> getGlobalPropertySource(ProjectContext project,
                                                                                                List<ProjectContext> others)
Deprecated. 


getGlobalPropertySource

@Deprecated
public static org.springframework.core.env.PropertySource<?> getGlobalPropertySource(ProjectContext project,
                                                                                                Mode missingLocationsMode)
Deprecated. 


getGlobalPropertySource

@Deprecated
public static org.springframework.core.env.PropertySource<?> getGlobalPropertySource(ProjectContext project,
                                                                                                Mode missingLocationsMode,
                                                                                                ProjectContext... others)
Deprecated. 


getGlobalPropertySource

@Deprecated
public static org.springframework.core.env.PropertySource<?> getGlobalPropertySource(ProjectContext project,
                                                                                                Mode missingLocationsMode,
                                                                                                List<ProjectContext> others)
Deprecated. 


getGlobalPropertySource

@Deprecated
public static org.springframework.core.env.PropertySource<?> getGlobalPropertySource(ProjectProperties projectProperties,
                                                                                                List<ProjectContext> others,
                                                                                                Properties properties)
Deprecated. 


getGlobalPropertySource

@Deprecated
public static org.springframework.core.env.PropertySource<?> getGlobalPropertySource(ProjectContext project,
                                                                                                List<ProjectContext> others,
                                                                                                Properties properties)
Deprecated. 

project needs to be a top level project eg rice-sampleapp, olefs-webapp. others is projects for submodules organized into a list where the last one in wins.


getGlobalPropertySource

@Deprecated
public static org.springframework.core.env.PropertySource<?> getGlobalPropertySource(ProjectProperties project)
Deprecated. 

project needs to be a top level project eg rice-sampleapp, olefs-webapp. others is projects for submodules organized into a list where the last one in wins.


getGlobalPropertySource

@Deprecated
public static org.springframework.core.env.PropertySource<?> getGlobalPropertySource(ProjectProperties project,
                                                                                                List<ProjectProperties> others)
Deprecated. 

project needs to be a top level project eg rice-sampleapp, olefs-webapp. others is projects for submodules organized into a list where the last one in wins.


getIncludes

public static List<String> getIncludes(org.springframework.core.env.Environment env,
                                       String key,
                                       String defaultValue)

getIncludes

public static List<String> getIncludes(org.springframework.core.env.Environment env,
                                       String key)

getExcludes

public static List<String> getExcludes(org.springframework.core.env.Environment env,
                                       String key,
                                       String defaultValue)

getExcludes

public static List<String> getExcludes(org.springframework.core.env.Environment env,
                                       String key)

getInstance

public static <T> T getInstance(org.springframework.core.env.Environment env,
                                String key,
                                Class<T> defaultValue)
Given a property holding the name of a class, return an instance of that class


getInstance

public static <T> T getInstance(org.springframework.core.env.Environment env,
                                String key)
Given a property holding the name of a class, return an instance of that class


getListFromCSV

public static List<String> getListFromCSV(org.springframework.core.env.Environment env,
                                          String key,
                                          String defaultValue)

getListFromCSV

public static List<String> getListFromCSV(org.springframework.core.env.Environment env,
                                          String key)

getNoneSensitiveListFromCSV

public static List<String> getNoneSensitiveListFromCSV(org.springframework.core.env.Environment env,
                                                       String key)
If the CSV value evaluates to null, "null", "none" or the empty string, return an empty list.


getNoneSensitiveListFromCSV

public static List<String> getNoneSensitiveListFromCSV(EnvironmentService env,
                                                       String key,
                                                       String defaultValue)
If the CSV value evaluates to null, "null", "none" or the empty string, return an empty list.


getNoneSensitiveListFromCSV

public static List<String> getNoneSensitiveListFromCSV(EnvironmentService env,
                                                       String key)
If the CSV value evaluates to null, "null", "none" or the empty string, return an empty list.


getNoneSensitiveListFromCSV

public static List<String> getNoneSensitiveListFromCSV(org.springframework.core.env.Environment env,
                                                       String key,
                                                       String defaultValue)
If the CSV value evaluates to null, "null", "none" or the empty string, return an empty list.


getPropertySources

@Deprecated
public static List<org.springframework.core.env.PropertySource<?>> getPropertySources(SpringService service,
                                                                                                 Class<?> annotatedClass,
                                                                                                 String propertiesBeanName,
                                                                                                 Properties properties)
Deprecated. 


getSinglePropertySource

@Deprecated
public static org.springframework.core.env.PropertySource<?> getSinglePropertySource(Class<?> annotatedClass)
Deprecated. 

Scan the annotated class to find the single bean registered in the context that implements PropertySource. If more than one bean is located, throw IllegalStateException.


getSinglePropertySource

@Deprecated
public static org.springframework.core.env.PropertySource<?> getSinglePropertySource(Class<?> annotatedClass,
                                                                                                String propertiesBeanName,
                                                                                                Properties properties)
Deprecated. 

Scan the annotated class to find the single bean registered in the context that implements PropertySource. If more than one bean is located, throw IllegalStateException.


getPropertySources

@Deprecated
public static List<org.springframework.core.env.PropertySource<?>> getPropertySources(Class<?> annotatedClass,
                                                                                                 String propertiesBeanName,
                                                                                                 Properties properties)
Deprecated. 


setupProfiles

public static void setupProfiles(org.springframework.context.ConfigurableApplicationContext ctx,
                                 List<String> activeProfiles,
                                 List<String> defaultProfiles)

getPropertySources

@Deprecated
public static List<org.springframework.core.env.PropertySource<?>> getPropertySources(Class<?> annotatedClass,
                                                                                                 String propertiesBeanName,
                                                                                                 Properties properties,
                                                                                                 List<String> activeProfiles,
                                                                                                 List<String> defaultProfiles)
Deprecated. 


getPropertySources

@Deprecated
public static List<org.springframework.core.env.PropertySource<?>> getPropertySources(SpringService service,
                                                                                                 String location,
                                                                                                 String mavenPropertiesBeanName,
                                                                                                 Properties mavenProperties)
Deprecated. 


getPropertySources

@Deprecated
public static List<org.springframework.core.env.PropertySource<?>> getPropertySources(String location,
                                                                                                 String propertiesBeanName,
                                                                                                 Properties properties)
Deprecated. 


getPropertySources

@Deprecated
public static List<org.springframework.core.env.PropertySource<?>> getPropertySources(String location,
                                                                                                 String propertiesBeanName,
                                                                                                 Properties properties,
                                                                                                 List<String> activeProfiles,
                                                                                                 List<String> defaultProfiles)
Deprecated. 


getSpringExecutable

@Deprecated
public static Executable getSpringExecutable(org.springframework.core.env.Environment env,
                                                        boolean skip,
                                                        org.springframework.core.env.PropertySource<?> ps,
                                                        List<Class<?>> annotatedClasses)
Deprecated. 


getInteger

public static int getInteger(org.springframework.core.env.Environment env,
                             String key)

getInteger

public static int getInteger(org.springframework.core.env.Environment env,
                             String key,
                             int defaultValue)

getLong

public static long getLong(org.springframework.core.env.Environment env,
                           String key)

getLong

public static long getLong(org.springframework.core.env.Environment env,
                           String key,
                           long defaultValue)

getDouble

public static double getDouble(org.springframework.core.env.Environment env,
                               String key)

getDouble

public static double getDouble(org.springframework.core.env.Environment env,
                               String key,
                               double defaultValue)

getMillis

public static long getMillis(EnvironmentService env,
                             String key,
                             String defaultValue)
Parse milliseconds from a time string that ends with a unit of measure. If no unit of measure is provided, milliseconds is assumed. Unit of measure is case insensitive.

See Also:
FormatUtils.getMillis(String time)

getMillis

public static long getMillis(org.springframework.core.env.Environment env,
                             String key,
                             String defaultValue)
Parse milliseconds from a time string that ends with a unit of measure. If no unit of measure is provided, milliseconds is assumed. Unit of measure is case insensitive.

See Also:
FormatUtils.getMillis(String time)

getBytesInteger

public static int getBytesInteger(org.springframework.core.env.Environment env,
                                  String key,
                                  String defaultValue)
Parse bytes from a size string that ends with a unit of measure. If no unit of measure is provided, bytes is assumed. Unit of measure is case insensitive.

See Also:
FormatUtils.getBytes(String size)

getBytesInteger

public static int getBytesInteger(org.springframework.core.env.Environment env,
                                  String key)
Parse bytes from a size string that ends with a unit of measure. If no unit of measure is provided, bytes is assumed. Unit of measure is case insensitive.

See Also:
FormatUtils.getBytes(String size)

getValidatedIntValue

public static int getValidatedIntValue(Long value)
Throw IllegalArgumentException if value is outside the range of an Integer, otherwise return the Integer value.


getBytes

public static long getBytes(org.springframework.core.env.Environment env,
                            String key,
                            String defaultValue)
Parse bytes from a size string that ends with a unit of measure. If no unit of measure is provided, bytes is assumed. Unit of measure is case insensitive.

See Also:
FormatUtils.getBytes(String size)

getBytes

public static long getBytes(org.springframework.core.env.Environment env,
                            String key)
Parse bytes from a size string that ends with a unit of measure. If no unit of measure is provided, bytes is assumed. Unit of measure is case insensitive.

See Also:
FormatUtils.getBytes(String size)

getFile

public static File getFile(org.springframework.core.env.Environment env,
                           String key)

getFilesFromCSV

public static List<File> getFilesFromCSV(org.springframework.core.env.Environment env,
                                         String key,
                                         String defaultValue)

getFilesFromCSV

public static List<File> getFilesFromCSV(org.springframework.core.env.Environment env,
                                         String key)

getFile

public static File getFile(org.springframework.core.env.Environment env,
                           String key,
                           File defaultValue)

getBoolean

public static boolean getBoolean(org.springframework.core.env.Environment env,
                                 String key,
                                 boolean defaultValue)

getBoolean

public static boolean getBoolean(org.springframework.core.env.Environment env,
                                 String key)

getGlobalPropertySource

@Deprecated
public static org.springframework.core.env.PropertySource<?> getGlobalPropertySource(String name,
                                                                                                List<ProjectProperties> pps)
Deprecated. 


getGlobalPropertySource

@Deprecated
public static org.springframework.core.env.PropertySource<?> getGlobalPropertySource(Properties properties)
Deprecated. 


getGlobalPropertySource

@Deprecated
public static org.springframework.core.env.PropertySource<?> getGlobalPropertySource(List<String> locations,
                                                                                                String encoding)
Deprecated. 

Return a SpringContext that resolves all placeholders from the PropertySource passed in


getSinglePropertySourceContext

@Deprecated
public static SpringContext getSinglePropertySourceContext(ProjectContext context,
                                                                      String location)
Deprecated. 

Return a SpringContext that resolves all placeholders from the list of property locations passed in + System/Environment properties


getSpringExecutable

@Deprecated
public static SpringExecutable getSpringExecutable(ProjectContext project,
                                                              String location,
                                                              List<Class<?>> annotatedClasses)
Deprecated. 

Return a SpringExecutable for the project, properties location, and config passed in.


getSpringExecutable

@Deprecated
public static SpringExecutable getSpringExecutable(PropertiesSupplier supplier,
                                                              Class<?> annotatedClass)
Deprecated. 

Return a SpringExecutable for the org.kuali.common.util.config.supplier.PropertiesSupplier and annotatedClass passed in


getSpringExecutable

@Deprecated
public static SpringExecutable getSpringExecutable(PropertiesSupplier supplier,
                                                              List<Class<?>> annotatedClasses)
Deprecated. 

Return a SpringExecutable for the org.kuali.common.util.config.supplier.PropertiesSupplier and annotatedClasses passed in


getSpringExecutable

@Deprecated
public static SpringExecutable getSpringExecutable(org.springframework.core.env.PropertySource<?> source,
                                                              Class<?> annotatedClass)
Deprecated. 

Return a SpringExecutable for the PropertySource and annotatedClass passed in


getSpringExecutable

@Deprecated
public static SpringExecutable getSpringExecutable(ProjectContext project,
                                                              String location,
                                                              Class<?> annotatedClass)
Deprecated. 

Return a SpringExecutable for the project, properties location, and config passed in.


getSpringExecutable

@Deprecated
public static SpringExecutable getSpringExecutable(Class<?> annotatedClass,
                                                              String location,
                                                              ProjectContext... projects)
Deprecated. 

Return a SpringExecutable for the project, properties location, and config passed in.


getSinglePropertySourceContext

@Deprecated
public static SpringContext getSinglePropertySourceContext(List<String> locations,
                                                                      String encoding)
Deprecated. 

Return a SpringContext that resolves all placeholders from the list of property locations passed in + System/Environment properties


getSinglePropertySourceContext

@Deprecated
public static SpringContext getSinglePropertySourceContext(org.springframework.core.env.PropertySource<?> source)
Deprecated. 

Return a SpringContext that resolves all placeholders from the PropertySource passed in


getGlobalPropertySource

@Deprecated
public static org.springframework.core.env.PropertySource<?> getGlobalPropertySource(ProjectContext context,
                                                                                                String... locations)
Deprecated. 


getPropertySource

@Deprecated
public static org.springframework.core.env.PropertySource<?> getPropertySource(String name,
                                                                                          List<ProjectProperties> pps)
Deprecated. 


getDefaultPropertyContextLocation

@Deprecated
public static String getDefaultPropertyContextLocation(String gav)
Deprecated. 

Converts a GAV into Spring's classpath style notation for the default project properties context.
  org.kuali.common:kuali-jdbc -> classpath:org/kuali/common/kuali-jdbc/properties-context.xml
 


validateExists

@Deprecated
public static void validateExists(List<String> locations)
Deprecated. 

Make sure all of the locations actually exist.


getContextWithPreRegisteredBeans

public static org.springframework.context.support.AbstractApplicationContext getContextWithPreRegisteredBeans(String id,
                                                                                                              String displayName,
                                                                                                              Map<String,?> beans)

getContextWithPreRegisteredBeans

@Deprecated
public static org.springframework.context.ConfigurableApplicationContext getContextWithPreRegisteredBeans(String id,
                                                                                                                     String displayName,
                                                                                                                     List<String> beanNames,
                                                                                                                     List<Object> beans)
Deprecated. 


getContextWithPreRegisteredBeans

@Deprecated
public static org.springframework.context.ConfigurableApplicationContext getContextWithPreRegisteredBeans(List<String> beanNames,
                                                                                                                     List<Object> beans)
Deprecated. 


getConfigurableApplicationContext

@Deprecated
public static org.springframework.context.ConfigurableApplicationContext getConfigurableApplicationContext()
Deprecated. 


refreshQuietly

public static void refreshQuietly(org.springframework.context.ConfigurableApplicationContext context)
Null safe refresh for a context


closeQuietly

public static void closeQuietly(org.springframework.context.ConfigurableApplicationContext context)
Null safe close for a context


getContextWithPreRegisteredBean

@Deprecated
public static org.springframework.context.ConfigurableApplicationContext getContextWithPreRegisteredBean(String beanName,
                                                                                                                    Object bean)
Deprecated. 


getPropertySourcesFromAnnotatedClass

@Deprecated
public static List<org.springframework.core.env.PropertySource<?>> getPropertySourcesFromAnnotatedClass(String annotatedClassName)
Deprecated. 


getPropertySources

@Deprecated
public static List<org.springframework.core.env.PropertySource<?>> getPropertySources(Class<?> annotatedClass)
Deprecated. 


extractPropertySourcesAndClose

@Deprecated
public static List<org.springframework.core.env.PropertySource<?>> extractPropertySourcesAndClose(org.springframework.context.ConfigurableApplicationContext context)
Deprecated. 


getPropertySources

@Deprecated
public static List<org.springframework.core.env.PropertySource<?>> getPropertySources(String location)
Deprecated. 

Scan the XML Spring context for any beans that implement PropertySource


getPropertySources

@Deprecated
public static List<org.springframework.core.env.PropertySource<?>> getPropertySources(org.springframework.context.ConfigurableApplicationContext context)
Deprecated. 

This method returns a list of any PropertySource objects registered in the indicated context. They are sorted by property source name.


getAllBeans

public static <T> Map<String,T> getAllBeans(List<String> locations,
                                            Class<T> type)

getAllBeans

public static <T> Map<String,T> getAllBeans(String location,
                                            Class<T> type)

getAllBeans

public static <T> Map<String,T> getAllBeans(org.springframework.context.ConfigurableApplicationContext ctx,
                                            Class<T> type)

getPropertySources

@Deprecated
public static List<org.springframework.core.env.PropertySource<?>> getPropertySources(org.springframework.context.ConfigurableApplicationContext context,
                                                                                                 Comparator<org.springframework.core.env.PropertySource<?>> comparator)
Deprecated. 

This method returns a list of any PropertySource objects registered in the indicated context. The comparator is responsible for putting them in correct order.


asList

@Deprecated
public static List<org.springframework.core.env.PropertySource<?>> asList(org.springframework.core.env.PropertySource<?>... sources)
Deprecated. 

Null safe method for converting an untyped array of property sources into a list. Never returns null.


debugQuietly

public static void debugQuietly(org.springframework.context.ApplicationContext ctx)

debug

public static void debug(org.springframework.context.ApplicationContext ctx)

showPropertySources

@Deprecated
public static void showPropertySources(List<org.springframework.core.env.PropertySource<?>> propertySources)
Deprecated. 


showPropertySources

@Deprecated
public static void showPropertySources(org.springframework.core.env.ConfigurableEnvironment env)
Deprecated. 


getProperty

public static String getProperty(org.springframework.core.env.Environment env,
                                 String key)
Get a fully resolved property value from the environment. If the property is not found or contains unresolvable placeholders an exception is thrown.


exists

public static boolean exists(org.springframework.core.env.Environment env,
                             String key)
Return true if the environment value for key is not null.


getProperty

public static String getProperty(org.springframework.core.env.Environment env,
                                 String key,
                                 String defaultValue)
Always return a fully resolved value. Use defaultValue if a value cannot be located in the environment. Throw an exception if the return value contains unresolvable placeholders.


getAllEnumerableProperties

@Deprecated
public static Properties getAllEnumerableProperties(org.springframework.core.env.ConfigurableEnvironment env)
Deprecated. 

Examine ConfigurableEnvironment for PropertySource's that extend EnumerablePropertySource and aggregate them into a single Properties object


reconfigurePropertySources

@Deprecated
public static void reconfigurePropertySources(org.springframework.core.env.ConfigurableEnvironment env,
                                                         String name,
                                                         Properties properties)
Deprecated. 

Remove any existing property sources and add one property source backed by the properties passed in


removeAllPropertySources

@Deprecated
public static void removeAllPropertySources(org.springframework.core.env.ConfigurableEnvironment env)
Deprecated. 

Remove any existing property sources


getPropertySources

@Deprecated
public static List<org.springframework.core.env.PropertySource<?>> getPropertySources(org.springframework.core.env.ConfigurableEnvironment env)
Deprecated. 

Get all PropertySource objects from the environment as a List.


convertEnumerablePropertySources

@Deprecated
public static PropertySourceConversionResult convertEnumerablePropertySources(List<org.springframework.core.env.PropertySource<?>> sources)
Deprecated. 

Convert any PropertySources that extend EnumerablePropertySource into Properties object's


convert

@Deprecated
public static Properties convert(org.springframework.core.env.EnumerablePropertySource<?> source)
Deprecated. 

Convert an EnumerablePropertySource into a Properties object.


isTrue

public static boolean isTrue(org.springframework.core.env.Environment env,
                             String property)
Return true if, and only if, property is set in the environment and evaluates to true.



Copyright © 2010-2013 The Kuali Foundation. All Rights Reserved.