|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.common.util.spring.SpringUtils
public class SpringUtils
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
|
getAllBeans(org.springframework.context.ConfigurableApplicationContext ctx,
Class<T> type)
|
|
static
|
getAllBeans(List<String> locations,
Class<T> type)
|
|
static
|
getAllBeans(String location,
Class<T> type)
|
|
static Properties |
getAllEnumerableProperties(org.springframework.core.env.ConfigurableEnvironment env)
Deprecated. |
|
static com.google.common.base.Optional<Boolean> |
getBoolean(EnvironmentService env,
String key,
com.google.common.base.Optional<Boolean> provided)
|
|
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
|
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
|
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 com.google.common.base.Optional<Integer> |
getInteger(EnvironmentService env,
String key,
com.google.common.base.Optional<Integer> provided)
|
|
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 int |
getMillisAsInt(EnvironmentService env,
String key,
int defaultValue)
Parse milliseconds from a time string that ends with a unit of measure. |
|
static com.google.common.base.Optional<Integer> |
getMillisAsInt(EnvironmentService env,
String key,
com.google.common.base.Optional<Integer> provided)
Parse milliseconds from a time string that ends with a unit of measure. |
|
static int |
getMillisAsInt(EnvironmentService 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 com.google.common.base.Optional<Boolean> |
getOptionalBoolean(EnvironmentService env,
String key)
|
|
static com.google.common.base.Optional<Integer> |
getOptionalInteger(EnvironmentService env,
String key)
|
|
static
|
getOptionalProperty(EnvironmentService env,
List<String> keys,
Class<T> type)
If there is no value for key return Optional.absent(), otherwise return Optional.of(value) |
|
static
|
getOptionalProperty(EnvironmentService env,
String key,
Class<T> type)
If there is no value for key return Optional.absent(), otherwise return Optional.of(value) |
|
static com.google.common.base.Optional<String> |
getOptionalString(EnvironmentService env,
String key)
If there is no value for key or the value is NULL or NONE, return Optional.absent(), otherwise return Optional.of(value) |
|
static com.google.common.base.Optional<List<String>> |
getOptionalStrings(EnvironmentService env,
List<String> keys)
If the environment contains a value for any of the elements in keys (NONE sensitive) use the environment value, otherwise return Optional.absent() |
|
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
|
getProperty(com.google.common.base.Optional<EnvironmentService> env,
List<String> keys,
Class<T> type,
com.google.common.base.Optional<T> provided)
|
|
static
|
getProperty(com.google.common.base.Optional<EnvironmentService> env,
List<String> keys,
Class<T> type,
T provided)
|
|
static
|
getProperty(com.google.common.base.Optional<EnvironmentService> env,
String key,
Class<T> type,
com.google.common.base.Optional<T> provided)
|
|
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 String |
getString(EnvironmentService env,
List<String> keys)
|
|
static com.google.common.base.Optional<String> |
getString(EnvironmentService env,
List<String> keys,
com.google.common.base.Optional<String> provided)
|
|
static com.google.common.base.Optional<String> |
getString(EnvironmentService env,
String key,
com.google.common.base.Optional<String> provided)
|
|
static com.google.common.base.Optional<String> |
getString(com.google.common.base.Optional<EnvironmentService> env,
List<String> keys,
com.google.common.base.Optional<String> provided)
|
|
static List<String> |
getStrings(EnvironmentService env,
String key,
List<String> defaults)
If the environment contains a value for key (NONE sensitive) use the environment value, otherwise use the defaults. |
|
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 |
---|
public SpringUtils()
Method Detail |
---|
public static <T> T getProperty(com.google.common.base.Optional<EnvironmentService> env, List<String> keys, Class<T> type, T provided)
public static <T> com.google.common.base.Optional<T> getProperty(com.google.common.base.Optional<EnvironmentService> env, String key, Class<T> type, com.google.common.base.Optional<T> provided)
public static <T> com.google.common.base.Optional<T> getProperty(com.google.common.base.Optional<EnvironmentService> env, List<String> keys, Class<T> type, com.google.common.base.Optional<T> provided)
public static com.google.common.base.Optional<String> getString(com.google.common.base.Optional<EnvironmentService> env, List<String> keys, com.google.common.base.Optional<String> provided)
public static String getString(EnvironmentService env, List<String> keys)
public static com.google.common.base.Optional<String> getString(EnvironmentService env, List<String> keys, com.google.common.base.Optional<String> provided)
public static com.google.common.base.Optional<String> getString(EnvironmentService env, String key, com.google.common.base.Optional<String> provided)
public static com.google.common.base.Optional<Boolean> getBoolean(EnvironmentService env, String key, com.google.common.base.Optional<Boolean> provided)
public static com.google.common.base.Optional<Integer> getInteger(EnvironmentService env, String key, com.google.common.base.Optional<Integer> provided)
public static com.google.common.base.Optional<Integer> getOptionalInteger(EnvironmentService env, String key)
public static <T> com.google.common.base.Optional<T> getOptionalProperty(EnvironmentService env, List<String> keys, Class<T> type)
key
return Optional.absent(), otherwise return Optional.of(value)
public static <T> com.google.common.base.Optional<T> getOptionalProperty(EnvironmentService env, String key, Class<T> type)
key
return Optional.absent(), otherwise return Optional.of(value)
public static com.google.common.base.Optional<String> getOptionalString(EnvironmentService env, String key)
key
or the value is NULL or NONE, return Optional.absent(), otherwise return Optional.of(value)
public static com.google.common.base.Optional<Boolean> getOptionalBoolean(EnvironmentService env, String key)
@Deprecated public static SpringContext getSpringContext(List<Class<?>> annotatedClasses, ProjectContext project, List<ProjectContext> others)
@Deprecated public static SpringContext getSpringContext(Class<?> annotatedClass, ProjectContext project, List<ProjectContext> others)
@Deprecated public static org.springframework.core.env.PropertySource<?> getGlobalPropertySource(ProjectContext project, ProjectContext other)
@Deprecated public static org.springframework.core.env.PropertySource<?> getGlobalPropertySource(ProjectContext project, List<ProjectContext> others)
@Deprecated public static org.springframework.core.env.PropertySource<?> getGlobalPropertySource(ProjectContext project, Mode missingLocationsMode)
@Deprecated public static org.springframework.core.env.PropertySource<?> getGlobalPropertySource(ProjectContext project, Mode missingLocationsMode, ProjectContext... others)
@Deprecated public static org.springframework.core.env.PropertySource<?> getGlobalPropertySource(ProjectContext project, Mode missingLocationsMode, List<ProjectContext> others)
@Deprecated public static org.springframework.core.env.PropertySource<?> getGlobalPropertySource(ProjectProperties projectProperties, List<ProjectContext> others, Properties properties)
@Deprecated public static org.springframework.core.env.PropertySource<?> getGlobalPropertySource(ProjectContext project, List<ProjectContext> others, Properties properties)
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.
@Deprecated public static org.springframework.core.env.PropertySource<?> getGlobalPropertySource(ProjectProperties project)
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.
@Deprecated public static org.springframework.core.env.PropertySource<?> getGlobalPropertySource(ProjectProperties project, List<ProjectProperties> others)
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.
public static List<String> getIncludes(org.springframework.core.env.Environment env, String key, String defaultValue)
public static List<String> getIncludes(org.springframework.core.env.Environment env, String key)
public static List<String> getExcludes(org.springframework.core.env.Environment env, String key, String defaultValue)
public static List<String> getExcludes(org.springframework.core.env.Environment env, String key)
public static <T> T getInstance(org.springframework.core.env.Environment env, String key, Class<T> defaultValue)
public static <T> T getInstance(org.springframework.core.env.Environment env, String key)
public static List<String> getListFromCSV(org.springframework.core.env.Environment env, String key, String defaultValue)
public static List<String> getListFromCSV(org.springframework.core.env.Environment env, String key)
public static List<String> getNoneSensitiveListFromCSV(org.springframework.core.env.Environment env, String key)
null
, "null"
, "none"
or the empty string, return an empty list.
public static List<String> getNoneSensitiveListFromCSV(EnvironmentService env, String key, String defaultValue)
null
, "null"
, "none"
or the empty string, return an empty list.
public static List<String> getNoneSensitiveListFromCSV(EnvironmentService env, String key)
null
, "null"
, "none"
or the empty string, return an empty list.
public static List<String> getStrings(EnvironmentService env, String key, List<String> defaults)
key
(NONE sensitive) use the environment value, otherwise use the defaults.
public static com.google.common.base.Optional<List<String>> getOptionalStrings(EnvironmentService env, List<String> keys)
keys
(NONE sensitive) use the environment value, otherwise return Optional.absent()
public static List<String> getNoneSensitiveListFromCSV(org.springframework.core.env.Environment env, String key, String defaultValue)
null
, "null"
, "none"
or the empty string, return an empty list.
@Deprecated public static List<org.springframework.core.env.PropertySource<?>> getPropertySources(SpringService service, Class<?> annotatedClass, String propertiesBeanName, Properties properties)
@Deprecated public static org.springframework.core.env.PropertySource<?> getSinglePropertySource(Class<?> annotatedClass)
PropertySource
. If more than one bean is located, throw
IllegalStateException
.
@Deprecated public static org.springframework.core.env.PropertySource<?> getSinglePropertySource(Class<?> annotatedClass, String propertiesBeanName, Properties properties)
PropertySource
. If more than one bean is located, throw
IllegalStateException
.
@Deprecated public static List<org.springframework.core.env.PropertySource<?>> getPropertySources(Class<?> annotatedClass, String propertiesBeanName, Properties properties)
public static void setupProfiles(org.springframework.context.ConfigurableApplicationContext ctx, List<String> activeProfiles, List<String> defaultProfiles)
@Deprecated public static List<org.springframework.core.env.PropertySource<?>> getPropertySources(Class<?> annotatedClass, String propertiesBeanName, Properties properties, List<String> activeProfiles, List<String> defaultProfiles)
@Deprecated public static List<org.springframework.core.env.PropertySource<?>> getPropertySources(SpringService service, String location, String mavenPropertiesBeanName, Properties mavenProperties)
@Deprecated public static List<org.springframework.core.env.PropertySource<?>> getPropertySources(String location, String propertiesBeanName, Properties properties)
@Deprecated public static List<org.springframework.core.env.PropertySource<?>> getPropertySources(String location, String propertiesBeanName, Properties properties, List<String> activeProfiles, List<String> defaultProfiles)
@Deprecated public static Executable getSpringExecutable(org.springframework.core.env.Environment env, boolean skip, org.springframework.core.env.PropertySource<?> ps, List<Class<?>> annotatedClasses)
public static int getInteger(org.springframework.core.env.Environment env, String key)
public static int getInteger(org.springframework.core.env.Environment env, String key, int defaultValue)
public static long getLong(org.springframework.core.env.Environment env, String key)
public static long getLong(org.springframework.core.env.Environment env, String key, long defaultValue)
public static double getDouble(org.springframework.core.env.Environment env, String key)
public static double getDouble(org.springframework.core.env.Environment env, String key, double defaultValue)
public static long getMillis(EnvironmentService env, String key, String defaultValue)
FormatUtils.getMillis(String time)
public static com.google.common.base.Optional<Integer> getMillisAsInt(EnvironmentService env, String key, com.google.common.base.Optional<Integer> provided)
FormatUtils.getMillis(String time)
public static int getMillisAsInt(EnvironmentService env, String key, String defaultValue)
FormatUtils.getMillis(String time)
public static int getMillisAsInt(EnvironmentService env, String key, int defaultValue)
FormatUtils.getMillis(String time)
public static long getMillis(org.springframework.core.env.Environment env, String key, String defaultValue)
FormatUtils.getMillis(String time)
public static int getBytesInteger(org.springframework.core.env.Environment env, String key, String defaultValue)
FormatUtils.getBytes(String size)
public static int getBytesInteger(org.springframework.core.env.Environment env, String key)
FormatUtils.getBytes(String size)
public static int getValidatedIntValue(Long value)
public static long getBytes(org.springframework.core.env.Environment env, String key, String defaultValue)
FormatUtils.getBytes(String size)
public static long getBytes(org.springframework.core.env.Environment env, String key)
FormatUtils.getBytes(String size)
public static File getFile(org.springframework.core.env.Environment env, String key)
public static List<File> getFilesFromCSV(org.springframework.core.env.Environment env, String key, String defaultValue)
public static List<File> getFilesFromCSV(org.springframework.core.env.Environment env, String key)
public static File getFile(org.springframework.core.env.Environment env, String key, File defaultValue)
public static boolean getBoolean(org.springframework.core.env.Environment env, String key, boolean defaultValue)
public static boolean getBoolean(org.springframework.core.env.Environment env, String key)
@Deprecated public static org.springframework.core.env.PropertySource<?> getGlobalPropertySource(String name, List<ProjectProperties> pps)
@Deprecated public static org.springframework.core.env.PropertySource<?> getGlobalPropertySource(Properties properties)
@Deprecated public static org.springframework.core.env.PropertySource<?> getGlobalPropertySource(List<String> locations, String encoding)
@Deprecated public static SpringContext getSinglePropertySourceContext(ProjectContext context, String location)
@Deprecated public static SpringExecutable getSpringExecutable(ProjectContext project, String location, List<Class<?>> annotatedClasses)
@Deprecated public static SpringExecutable getSpringExecutable(PropertiesSupplier supplier, Class<?> annotatedClass)
@Deprecated public static SpringExecutable getSpringExecutable(PropertiesSupplier supplier, List<Class<?>> annotatedClasses)
@Deprecated public static SpringExecutable getSpringExecutable(org.springframework.core.env.PropertySource<?> source, Class<?> annotatedClass)
@Deprecated public static SpringExecutable getSpringExecutable(ProjectContext project, String location, Class<?> annotatedClass)
@Deprecated public static SpringExecutable getSpringExecutable(Class<?> annotatedClass, String location, ProjectContext... projects)
@Deprecated public static SpringContext getSinglePropertySourceContext(List<String> locations, String encoding)
@Deprecated public static SpringContext getSinglePropertySourceContext(org.springframework.core.env.PropertySource<?> source)
@Deprecated public static org.springframework.core.env.PropertySource<?> getGlobalPropertySource(ProjectContext context, String... locations)
@Deprecated public static org.springframework.core.env.PropertySource<?> getPropertySource(String name, List<ProjectProperties> pps)
@Deprecated public static String getDefaultPropertyContextLocation(String gav)
org.kuali.common:kuali-jdbc -> classpath:org/kuali/common/kuali-jdbc/properties-context.xml
@Deprecated public static void validateExists(List<String> locations)
public static org.springframework.context.support.AbstractApplicationContext getContextWithPreRegisteredBeans(String id, String displayName, Map<String,?> beans)
@Deprecated public static org.springframework.context.ConfigurableApplicationContext getContextWithPreRegisteredBeans(String id, String displayName, List<String> beanNames, List<Object> beans)
@Deprecated public static org.springframework.context.ConfigurableApplicationContext getContextWithPreRegisteredBeans(List<String> beanNames, List<Object> beans)
@Deprecated public static org.springframework.context.ConfigurableApplicationContext getConfigurableApplicationContext()
public static void refreshQuietly(org.springframework.context.ConfigurableApplicationContext context)
public static void closeQuietly(org.springframework.context.ConfigurableApplicationContext context)
@Deprecated public static org.springframework.context.ConfigurableApplicationContext getContextWithPreRegisteredBean(String beanName, Object bean)
@Deprecated public static List<org.springframework.core.env.PropertySource<?>> getPropertySourcesFromAnnotatedClass(String annotatedClassName)
@Deprecated public static List<org.springframework.core.env.PropertySource<?>> getPropertySources(Class<?> annotatedClass)
@Deprecated public static List<org.springframework.core.env.PropertySource<?>> extractPropertySourcesAndClose(org.springframework.context.ConfigurableApplicationContext context)
@Deprecated public static List<org.springframework.core.env.PropertySource<?>> getPropertySources(String location)
PropertySource
@Deprecated public static List<org.springframework.core.env.PropertySource<?>> getPropertySources(org.springframework.context.ConfigurableApplicationContext context)
public static <T> Map<String,T> getAllBeans(List<String> locations, Class<T> type)
public static <T> Map<String,T> getAllBeans(String location, Class<T> type)
public static <T> Map<String,T> getAllBeans(org.springframework.context.ConfigurableApplicationContext ctx, Class<T> type)
@Deprecated public static List<org.springframework.core.env.PropertySource<?>> getPropertySources(org.springframework.context.ConfigurableApplicationContext context, Comparator<org.springframework.core.env.PropertySource<?>> comparator)
@Deprecated public static List<org.springframework.core.env.PropertySource<?>> asList(org.springframework.core.env.PropertySource<?>... sources)
public static void debugQuietly(org.springframework.context.ApplicationContext ctx)
public static void debug(org.springframework.context.ApplicationContext ctx)
@Deprecated public static void showPropertySources(List<org.springframework.core.env.PropertySource<?>> propertySources)
@Deprecated public static void showPropertySources(org.springframework.core.env.ConfigurableEnvironment env)
public static String getProperty(org.springframework.core.env.Environment env, String key)
public static boolean exists(org.springframework.core.env.Environment env, String key)
public static String getProperty(org.springframework.core.env.Environment env, String key, String defaultValue)
defaultValue
if a value cannot be located in the environment. Throw an exception if the return value contains
unresolvable placeholders.
@Deprecated public static Properties getAllEnumerableProperties(org.springframework.core.env.ConfigurableEnvironment env)
ConfigurableEnvironment
for PropertySource
's that extend EnumerablePropertySource
and aggregate them into a single
Properties
object
@Deprecated public static void reconfigurePropertySources(org.springframework.core.env.ConfigurableEnvironment env, String name, Properties properties)
@Deprecated public static void removeAllPropertySources(org.springframework.core.env.ConfigurableEnvironment env)
@Deprecated public static List<org.springframework.core.env.PropertySource<?>> getPropertySources(org.springframework.core.env.ConfigurableEnvironment env)
@Deprecated public static PropertySourceConversionResult convertEnumerablePropertySources(List<org.springframework.core.env.PropertySource<?>> sources)
@Deprecated public static Properties convert(org.springframework.core.env.EnumerablePropertySource<?> source)
public static boolean isTrue(org.springframework.core.env.Environment env, String property)
property
is set in the environment and evaluates to true.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |