com.bankframe.services.resource
Class ResourceBundleAdapter

java.lang.Object
  extended by java.util.ResourceBundle
      extended by com.bankframe.services.resource.ResourceBundleAdapter

public class ResourceBundleAdapter
extends ResourceBundle

This is an adapter class that wraps a BankFrameResource instance to provide a java.util.ResourceBundle interface. This class is provided to aid backwards compatability with BankFrame code that relies on the ResourceBundle API


Constructor Summary
ResourceBundleAdapter(BankFrameResource resource)
          Constructor.
 
Method Summary
 Enumeration getKeys()
           
static ResourceBundle getResourceBundle(String resourceName)
          This method creates a ResourceBundleAdapther instance for the specified instance.
 
Methods inherited from class java.util.ResourceBundle
getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceBundleAdapter

public ResourceBundleAdapter(BankFrameResource resource)
Constructor.

Parameters:
resource - the BankFrameResource to adapt
Method Detail

getKeys

public Enumeration getKeys()
Specified by:
getKeys in class ResourceBundle
See Also:
ResourceBundle.getKeys()

getResourceBundle

public static ResourceBundle getResourceBundle(String resourceName)
This method creates a ResourceBundleAdapther instance for the specified instance.

Parameters:
resourceName - the name of the resource instance
Returns:
the created ResourceBundle object


Copyright © 2005, 2007, Oracle. All rights reserved.