Class 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
      StoredBundleFactory()
      Creates the bundle factory.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clearCache()  
      protected java.util.ResourceBundle getBundle​(org.tentackle.common.BundleSupport support, java.util.Locale locale)  
      static boolean isEnabled()
      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 Detail

      • StoredBundleFactory

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

      • 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 java.util.ResourceBundle getBundle​(org.tentackle.common.BundleSupport support,
                                                     java.util.Locale locale)
        Overrides:
        getBundle in class org.tentackle.common.DefaultBundleFactory