ch.elca.el4j.util.env
Class EnvPropertiesUtils

java.lang.Object
  extended by ch.elca.el4j.util.env.EnvPropertiesUtils

public class EnvPropertiesUtils
extends Object

This class provides access to the currently used environment properties.

Author:
Alex Mathey (AMA), Martin Zeltner (MZE)
File-location:
EnvPropertiesUtils
Last check-in date:
2009-08-04 14:25:40 +0200 (Di, 04. Aug 2009) by swismer for revision 3874

Constructor Summary
protected EnvPropertiesUtils()
          Hide default constructor.
 
Method Summary
static Properties getEnvBeanPropertyProperties()
          Retrieves the currently used bean property environment properties.
static Properties getEnvBeanPropertyProperties(ResourcePatternResolver resourcePatternResolver, boolean mostSpecificResourceLast)
          Retrieves the currently used bean property environment properties.
static Properties getEnvPlaceholderProperties()
          Retrieves the currently used placeholder environment properties.
static Properties getEnvPlaceholderProperties(ResourcePatternResolver resourcePatternResolver, boolean mostSpecificResourceLast)
          Retrieves the currently used placeholder environment properties.
static Properties getEnvProperties()
          Deprecated. Use method getEnvPlaceholderProperties() instead.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnvPropertiesUtils

protected EnvPropertiesUtils()
Hide default constructor.

Method Detail

getEnvProperties

@Deprecated
public static Properties getEnvProperties()
Deprecated. Use method getEnvPlaceholderProperties() instead.

Retrieves the currently used environment properties.

Returns:
The currently used environment properties.

getEnvPlaceholderProperties

public static Properties getEnvPlaceholderProperties()
Retrieves the currently used placeholder environment properties.

Returns:
The currently used placeholder environment properties.

getEnvPlaceholderProperties

public static Properties getEnvPlaceholderProperties(ResourcePatternResolver resourcePatternResolver,
                                                     boolean mostSpecificResourceLast)
Retrieves the currently used placeholder environment properties.

Parameters:
resourcePatternResolver - the resolver to ask for the resources
mostSpecificResourceLast - is most specific resource last
Returns:
The currently used placeholder environment properties.

getEnvBeanPropertyProperties

public static Properties getEnvBeanPropertyProperties()
Retrieves the currently used bean property environment properties.

Returns:
The currently used bean override properties.

getEnvBeanPropertyProperties

public static Properties getEnvBeanPropertyProperties(ResourcePatternResolver resourcePatternResolver,
                                                      boolean mostSpecificResourceLast)
Retrieves the currently used bean property environment properties.

Parameters:
resourcePatternResolver - the resolver to ask for the resources
mostSpecificResourceLast - is most specific resource last
Returns:
The currently used bean override properties.


Copyright © 2005-2011 ELCA. All Rights Reserved.