Class WorkflowResourceBundleLocator
- java.lang.Object
-
- de.xima.fc.workflow.processor.logic.WorkflowResourceBundleLocator
-
- All Implemented Interfaces:
IResourceBundleLocator
- Direct Known Subclasses:
WorkflowResourceBundleLocator.MutableWorkflowResourceBundleLocator
public abstract class WorkflowResourceBundleLocator extends Object implements IResourceBundleLocator
Resource bundle locator used that combines the built-in formcycle bundles, and the bundle provided by a workflow node or trigger plugin.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WorkflowResourceBundleLocator.MutableWorkflowResourceBundleLocator
Resource bundle locator used that combines the built-in formcycle bundles, and the custom bundle provided by a workflow node or trigger plugin.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static WorkflowResourceBundleLocator.MutableWorkflowResourceBundleLocator
createMutable()
static WorkflowResourceBundleLocator
createWithCustom(IResourceBundleLocator customLocator)
protected abstract IResourceBundleLocator
getCustomLocator()
ResourceBundle
getResourceBundle(Locale locale)
Returns a resource bundle for the given locale.
-
-
-
Method Detail
-
getResourceBundle
public final ResourceBundle getResourceBundle(Locale locale)
Description copied from interface:IResourceBundleLocator
Returns a resource bundle for the given locale.- Specified by:
getResourceBundle
in interfaceIResourceBundleLocator
- Parameters:
locale
- A locale, for which a resource bundle shall be retrieved. Must not benull
.- Returns:
- A resource bundle for the given locale. May be
null
, if no such bundle exists.
-
getCustomLocator
protected abstract IResourceBundleLocator getCustomLocator()
-
createMutable
public static WorkflowResourceBundleLocator.MutableWorkflowResourceBundleLocator createMutable()
- Returns:
- A new resource bundle locator that allows the
getCustomLocator()
to be modified.
-
createWithCustom
public static WorkflowResourceBundleLocator createWithCustom(IResourceBundleLocator customLocator)
- Parameters:
customLocator
- Custom locator to use.- Returns:
- A new resource bundle locator with the given custom locator that cannot be modified.
-
-