com.sourceforge.jpatterns.utils
Class JPatternsPropsUtils

java.lang.Object
  extended by com.sourceforge.jpatterns.utils.JPatternsPropsUtils

public class JPatternsPropsUtils
extends Object

This class the common JPatterns based methods for working with property files. $Author:: zmicer $
$Rev:: 67 $
* $Date:: 2007-08-28 21:37:07 #$


Field Summary
static ResourceBundle customBundle
          The custom bundle to be used.
static ResourceBundle defaultBundle
          The default bundle to be used.
static org.apache.log4j.Logger LOG
          Logger instance.
 
Constructor Summary
JPatternsPropsUtils()
           
 
Method Summary
static ResourceBundle getCustomBundle()
           
static String getCustomBundleName()
           
static ResourceBundle getDefaultBundle()
           
static String getDefaultBundleName()
           
static IPropertiesManager getPropertiesManagerImplementation()
          Return the implementation of the IPropertiesManager.
static void setCustomBundle(ResourceBundle customBundle)
           
static void setDefaultBundle(ResourceBundle defaultBundle)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.log4j.Logger LOG
Logger instance.


defaultBundle

public static ResourceBundle defaultBundle
The default bundle to be used.


customBundle

public static ResourceBundle customBundle
The custom bundle to be used.

Constructor Detail

JPatternsPropsUtils

public JPatternsPropsUtils()
Method Detail

getDefaultBundleName

public static String getDefaultBundleName()
Returns:
the name of the resource bundle file should be used for the default JPatterns properties configuration. $Rev:: 67 $
* $Date:: 2007-08-28 21:37:07 #$

getCustomBundleName

public static String getCustomBundleName()
Returns:
the name of the resource bundle file should be used for the custom JPatterns properties configuration. $Rev:: 67 $
* $Date:: 2007-08-28 21:37:07 #$

getPropertiesManagerImplementation

public static IPropertiesManager getPropertiesManagerImplementation()
Return the implementation of the IPropertiesManager. For this we would obtain default/custom bundles. Pleaes be noticed they would be stored to m_defaultBundle and m_customBundle to be able to use them later by the implementation of the PropertiesManagerImpl without additional retrieving of the bundles.

Returns:
the implementation of the IPropertiesManager using the default/custom properties files. First of all the custom would be checked, then the default one, and then if the implementation is not specified - default implementation would be obtained (PropertiesManagerImpl class) $Rev:: 67 $
* $Date:: 2007-08-28 21:37:07 #$

getDefaultBundle

public static ResourceBundle getDefaultBundle()

setDefaultBundle

public static void setDefaultBundle(ResourceBundle defaultBundle)

getCustomBundle

public static ResourceBundle getCustomBundle()

setCustomBundle

public static void setCustomBundle(ResourceBundle customBundle)


Copyright © 2007 jzmicer.team. All Rights Reserved.