com.jfw.util
Class PropertiesProxy

java.lang.Object
  extended by com.jfw.util.PropertiesProxy

public final class PropertiesProxy
extends java.lang.Object

Distribute objects PropertiesManager.
All methods are static and thread safe.


Constructor Summary
PropertiesProxy()
           
 
Method Summary
static PropertiesManager getProperties()
          Call method getProperties(String, String).
static PropertiesManager getProperties(java.lang.String propertiesName)
          Call method getProperties(String, String).
static PropertiesManager getProperties(java.lang.String propertiesName, java.lang.String language)
          Get a PropertiesManager object.
 java.lang.String toString()
          Return data relative of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertiesProxy

public PropertiesProxy()
Method Detail

getProperties

public static PropertiesManager getProperties(java.lang.String propertiesName,
                                              java.lang.String language)
Get a PropertiesManager object. The object is first searched in propertiesPool: if not found then the method createPropertiesManager(java.lang.String, java.lang.String) is called.

Parameters:
propertiesName - the name of the properties file without the suffix .properties).
language - the language of the properties file. If null or if the requested language of the properties file not exist the default one is returned.
Returns:
a PropertiesManager object.

getProperties

public static PropertiesManager getProperties(java.lang.String propertiesName)
Call method getProperties(String, String). The value of parameter language is null.

Parameters:
propertiesName - the name of the properties file without the suffix .properties).
Returns:
a PropertiesManager object.

getProperties

public static PropertiesManager getProperties()
Call method getProperties(String, String).
The value of parameter propertiesName is jfw.
The value of parameter language is null.

Returns:
a PropertiesManager object.

toString

public java.lang.String toString()
Return data relative of the object.

Overrides:
toString in class java.lang.Object
Returns:
data relative of the object.