public class BundlePropertyResolver extends PropertyResolver
Action to defer loading
of resources until the Action.getValue(String) method is
called.IdeAction,
PropertyResolver| Constructor and Description |
|---|
BundlePropertyResolver(java.lang.String bundleClass,
java.lang.ClassLoader bundleClassLoader,
java.util.Map actionKeyToBundleKey)
Constructs a ResourceBundlePropertyResolver.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
get(java.lang.String key)
Get the value of the specified property.
|
public BundlePropertyResolver(java.lang.String bundleClass,
java.lang.ClassLoader bundleClassLoader,
java.util.Map actionKeyToBundleKey)
bundleClass - the fully qualified class name of the resource bundle
to load resources from. Must not be null or the empty string.bundleClassLoader - the class loader to load resources from. If null,
the current thread's context class loader will be used.actionKeyToBundleKey - a map specifying which bundle key to use
for a given action key.public java.lang.Object get(java.lang.String key)
This implementation lazily retrieves the value of the specified key from the associated resource bundle.
get in class PropertyResolverpropertyName - the name of a property. Will never be null.