Class StoredBundleFactory

java.lang.Object
org.tentackle.common.DefaultBundleFactory
org.tentackle.i18n.StoredBundleFactory
All Implemented Interfaces:
org.tentackle.common.BundleFactory

@Service(org.tentackle.common.BundleFactory.class) public class StoredBundleFactory extends org.tentackle.common.DefaultBundleFactory
Factory for stored bundles.
Replaces the DefaultBundleFactory.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates the bundle factory.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    protected ResourceBundle
    getBundle(org.tentackle.common.BundleSupport support, Locale locale)
     
    static boolean
    Returns whether loading bundles from backend is enabled at all.
    static void
    setEnabled(boolean enabled)
    Sets whether loading bundles from backend is enabled at all.

    Methods inherited from class org.tentackle.common.DefaultBundleFactory

    createProviders, findBundle, findBundle, getClassLoader, getControl, getProviders, normalizeBasename, setClassLoader

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StoredBundleFactory

      public StoredBundleFactory()
      Creates the bundle factory.
  • Method Details

    • isEnabled

      public static boolean isEnabled()
      Returns whether loading bundles from backend is enabled at all.
      Returns:
      true if enabled (default)
    • setEnabled

      public static void setEnabled(boolean enabled)
      Sets whether loading bundles from backend is enabled at all.
      Parameters:
      enabled - true if enabled (default)
    • clearCache

      public void clearCache()
      Specified by:
      clearCache in interface org.tentackle.common.BundleFactory
      Overrides:
      clearCache in class org.tentackle.common.DefaultBundleFactory
    • getBundle

      protected ResourceBundle getBundle(org.tentackle.common.BundleSupport support, Locale locale)
      Overrides:
      getBundle in class org.tentackle.common.DefaultBundleFactory