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
Replaces the
DefaultBundleFactory.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected ResourceBundlestatic booleanReturns whether loading bundles from backend is enabled at all.static voidsetEnabled(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
-
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:
clearCachein interfaceorg.tentackle.common.BundleFactory- Overrides:
clearCachein classorg.tentackle.common.DefaultBundleFactory
-
getBundle
- Overrides:
getBundlein classorg.tentackle.common.DefaultBundleFactory
-