- 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.DefaultBundleFactoryFactory for stored bundles.
Replaces theDefaultBundleFactory.
-
-
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 voidclearCache()protected java.util.ResourceBundlegetBundle(org.tentackle.common.BundleSupport support, java.util.Locale locale)static booleanisEnabled()Returns whether loading bundles from backend is enabled at all.static voidsetEnabled(boolean enabled)Sets whether loading bundles from backend is enabled at all.
-
-
-
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:
clearCachein interfaceorg.tentackle.common.BundleFactory- Overrides:
clearCachein classorg.tentackle.common.DefaultBundleFactory
-
getBundle
protected java.util.ResourceBundle getBundle(org.tentackle.common.BundleSupport support, java.util.Locale locale)- Overrides:
getBundlein classorg.tentackle.common.DefaultBundleFactory
-
-