Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

oracle.ideri.util
Class BundlePropertyResolver

java.lang.Object
  extended by oracle.ide.controller.PropertyResolver
      extended by oracle.ideri.util.BundlePropertyResolver

public class BundlePropertyResolver
extends PropertyResolver

A property resolver that lazily loads resources from a ResourceBundle. You can use this class in conjunction with Action to defer loading of resources until the Action.getValue(String) method is called.

Since:
10.1.3
See Also:
IdeAction, PropertyResolver

Constructor Summary
BundlePropertyResolver(java.lang.String bundleClass, java.lang.ClassLoader bundleClassLoader, java.util.Map actionKeyToBundleKey)
          Constructs a ResourceBundlePropertyResolver.
 
Method Summary
 java.lang.Object get(java.lang.String key)
          Get the value of the specified property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BundlePropertyResolver

public BundlePropertyResolver(java.lang.String bundleClass,
                              java.lang.ClassLoader bundleClassLoader,
                              java.util.Map actionKeyToBundleKey)
Constructs a ResourceBundlePropertyResolver.

Parameters:
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.
Method Detail

get

public java.lang.Object get(java.lang.String key)
Get the value of the specified property.

This implementation lazily retrieves the value of the specified key from the associated resource bundle.

Specified by:
get in class PropertyResolver
Parameters:
propertyName - the name of a property. Will never be null.
Returns:
the value of the specified property. May be null.

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

Copyright © 1997, 2013, Oracle. All rights reserved.