Class PreprocessingResourceBundle

java.lang.Object
java.util.ResourceBundle
ch.autumo.beetroot.utils.common.PreprocessingResourceBundle

public final class PreprocessingResourceBundle extends ResourceBundle
Pre-processes special resource bundle entries.
  • Field Details

    • PLACEHOLDER_APP_NAME

      public static final String PLACEHOLDER_APP_NAME
      Placeholder for {$APP_NAME}.
      See Also:
    • PLACEHOLDER_APP_VERSION

      public static final String PLACEHOLDER_APP_VERSION
      Placeholder for {$APP_VERSION}.
      See Also:
  • Method Details

    • handleGetObject

      protected Object handleGetObject(String key)
      Specified by:
      handleGetObject in class ResourceBundle
    • getKeys

      public Enumeration<String> getKeys()
      Specified by:
      getKeys in class ResourceBundle
    • containsKey

      public boolean containsKey(String key)
      Overrides:
      containsKey in class ResourceBundle
    • getBundle

      public static ResourceBundle getBundle(String type, String baseName, Locale locale)
      Create a pre-processed bundle if necessary (based on type), otherwise return a standard bundle.
      Parameters:
      type - bundle type
      baseName - base name
      locale - locale
      Returns:
      pre-processed or standard bundle
    • getBundle

      public static ResourceBundle getBundle(String type, String baseName, Locale locale, ClassLoader loader)
      Create a pre-processed bundle if necessary (based on type), otherwise return a standard bundle.
      Parameters:
      type - bundle type
      baseName - base name
      locale - locale
      loader - class loader
      Returns:
      pre-processed or standard bundle
    • getBundle

      public static ResourceBundle getBundle(String type, String baseName, Locale locale, ResourceBundle.Control control)
      Create a pre-processed bundle if necessary (based on type), otherwise return a standard bundle.
      Parameters:
      type - bundle type
      baseName - base name
      locale - locale
      control - resource bundle control
      Returns:
      pre-processed or standard bundle
    • getBundle

      public static ResourceBundle getBundle(String type, String baseName, Locale locale, ClassLoader loader, ResourceBundle.Control control)
      Create a pre-processed bundle if necessary (based on type), otherwise return a standard bundle.
      Parameters:
      type - bundle type
      baseName - base name
      locale - locale
      loader - class loader
      control - resource bundle control
      Returns:
      pre-processed or standard bundle