org.kuali.common.util.spring.env
Class DefaultEnvironmentService

java.lang.Object
  extended by org.kuali.common.util.spring.env.DefaultEnvironmentService
All Implemented Interfaces:
EnvironmentService

Deprecated. Use BasicEnvironmentService instead

@Deprecated
public class DefaultEnvironmentService
extends Object
implements EnvironmentService

By default, an exception is thrown if a value cannot be located (unless a default value has been supplied).

By default, an exception is thrown if any placeholders cannot be resolved in any string values.

By default, environment variables are automatically checked if a normal property value cannot be found. For example, given the key db.vendor the service will also automatically check env.DB_VENDOR


Field Summary
static boolean DEFAULT_CHECK_ENVIRONMENT_VARIABLES
          Deprecated.  
static Mode DEFAULT_MISSING_PROPERTY_MODE
          Deprecated.  
static boolean DEFAULT_RESOLVE_STRINGS
          Deprecated.  
static String ENV_PREFIX
          Deprecated.  
 
Constructor Summary
DefaultEnvironmentService(org.springframework.core.env.Environment env)
          Deprecated.  
DefaultEnvironmentService(org.springframework.core.env.Environment env, boolean checkEnvironmentVariables)
          Deprecated.  
DefaultEnvironmentService(org.springframework.core.env.Environment env, boolean checkEnvironmentVariables, boolean resolveStrings, Mode missingPropertyMode)
          Deprecated.  
 
Method Summary
 boolean containsProperty(String key)
          Deprecated.  
 Boolean getBoolean(String key)
          Deprecated.  
 Boolean getBoolean(String key, Boolean defaultValue)
          Deprecated.  
<T> Class<T>
getClass(String key, Class<T> type)
          Deprecated.  
<T> Class<T>
getClass(String key, Class<T> type, Class<T> defaultValue)
          Deprecated.  
 org.springframework.core.env.Environment getEnv()
          Deprecated.  
 File getFile(String key)
          Deprecated.  
 File getFile(String key, File defaultValue)
          Deprecated.  
 Integer getInteger(String key)
          Deprecated.  
 Integer getInteger(String key, Integer defaultValue)
          Deprecated.  
protected  String getMissingPropertyMessage(String key)
          Deprecated.  
 Mode getMissingPropertyMode()
          Deprecated.  
<T> T
getProperty(EnvContext<T> context)
          Deprecated.  
<T> T
getProperty(String key, Class<T> type)
          Deprecated.  
<T> T
getProperty(String key, Class<T> type, T provided)
          Deprecated.  
protected
<T> T
getSpringValue(String key, Class<T> type)
          Deprecated.  
protected
<T> Class<T>
getSpringValueAsClass(String key, Class<T> type)
          Deprecated.  
 String getString(String key)
          Deprecated.  
 String getString(String key, String defaultValue)
          Deprecated.  
 boolean isCheckEnvironmentVariables()
          Deprecated.  
 boolean isResolveStrings()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CHECK_ENVIRONMENT_VARIABLES

public static final boolean DEFAULT_CHECK_ENVIRONMENT_VARIABLES
Deprecated. 
See Also:
Constant Field Values

DEFAULT_RESOLVE_STRINGS

public static final boolean DEFAULT_RESOLVE_STRINGS
Deprecated. 
See Also:
Constant Field Values

DEFAULT_MISSING_PROPERTY_MODE

public static final Mode DEFAULT_MISSING_PROPERTY_MODE
Deprecated. 

ENV_PREFIX

public static final String ENV_PREFIX
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

DefaultEnvironmentService

public DefaultEnvironmentService(org.springframework.core.env.Environment env)
Deprecated. 

DefaultEnvironmentService

public DefaultEnvironmentService(org.springframework.core.env.Environment env,
                                 boolean checkEnvironmentVariables)
Deprecated. 

DefaultEnvironmentService

public DefaultEnvironmentService(org.springframework.core.env.Environment env,
                                 boolean checkEnvironmentVariables,
                                 boolean resolveStrings,
                                 Mode missingPropertyMode)
Deprecated. 
Method Detail

containsProperty

public boolean containsProperty(String key)
Deprecated. 
Specified by:
containsProperty in interface EnvironmentService

getProperty

public <T> T getProperty(EnvContext<T> context)
Deprecated. 
Specified by:
getProperty in interface EnvironmentService

getMissingPropertyMessage

protected String getMissingPropertyMessage(String key)
Deprecated. 

getSpringValue

protected <T> T getSpringValue(String key,
                               Class<T> type)
Deprecated. 

getSpringValueAsClass

protected <T> Class<T> getSpringValueAsClass(String key,
                                             Class<T> type)
Deprecated. 

getClass

public <T> Class<T> getClass(String key,
                             Class<T> type)
Deprecated. 
Specified by:
getClass in interface EnvironmentService

getClass

public <T> Class<T> getClass(String key,
                             Class<T> type,
                             Class<T> defaultValue)
Deprecated. 
Specified by:
getClass in interface EnvironmentService

getString

public String getString(String key)
Deprecated. 
Specified by:
getString in interface EnvironmentService

getString

public String getString(String key,
                        String defaultValue)
Deprecated. 
Specified by:
getString in interface EnvironmentService

getBoolean

public Boolean getBoolean(String key)
Deprecated. 
Specified by:
getBoolean in interface EnvironmentService

getBoolean

public Boolean getBoolean(String key,
                          Boolean defaultValue)
Deprecated. 
Specified by:
getBoolean in interface EnvironmentService

getFile

public File getFile(String key)
Deprecated. 
Specified by:
getFile in interface EnvironmentService

getFile

public File getFile(String key,
                    File defaultValue)
Deprecated. 
Specified by:
getFile in interface EnvironmentService

getInteger

public Integer getInteger(String key,
                          Integer defaultValue)
Deprecated. 
Specified by:
getInteger in interface EnvironmentService

getInteger

public Integer getInteger(String key)
Deprecated. 
Specified by:
getInteger in interface EnvironmentService

isCheckEnvironmentVariables

public boolean isCheckEnvironmentVariables()
Deprecated. 

isResolveStrings

public boolean isResolveStrings()
Deprecated. 

getEnv

public org.springframework.core.env.Environment getEnv()
Deprecated. 

getMissingPropertyMode

public Mode getMissingPropertyMode()
Deprecated. 

getProperty

public <T> T getProperty(String key,
                         Class<T> type,
                         T provided)
Deprecated. 
Specified by:
getProperty in interface EnvironmentService

getProperty

public <T> T getProperty(String key,
                         Class<T> type)
Deprecated. 
Specified by:
getProperty in interface EnvironmentService


Copyright © 2010–2014 The Kuali Foundation. All rights reserved.