org.apache.commons.resources.impl
Class ResourceBundleResourcesFactory
java.lang.Object
org.apache.commons.resources.impl.ResourcesFactoryBase
org.apache.commons.resources.impl.ResourceBundleResourcesFactory
- All Implemented Interfaces:
- Serializable, ResourcesFactory
public class ResourceBundleResourcesFactory
- extends ResourcesFactoryBase
Concrete implementation of ResourcesFactory
that creates
Resources
instances that wrap a set (one per Locale) of
java.util.ResourceBundle
instances that share a common
base name. The configuration String that is passed to the
getResources()
method must contain the fully qualified
Java name of the underlying ResourceBundle
family
that is to be wrapped.
- See Also:
- Serialized Form
Method Summary |
protected Resources |
createResources(String name,
String config)
Create and return a new Resources instance with the
specified logical name, after calling its init()
method and delegating the relevant properties. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceBundleResourcesFactory
public ResourceBundleResourcesFactory()
createResources
protected Resources createResources(String name,
String config)
Create and return a new Resources
instance with the
specified logical name, after calling its init()
method and delegating the relevant properties.
- Specified by:
createResources
in class ResourcesFactoryBase
- Parameters:
name
- Logical name of the Resources
instance to createconfig
- Configuration string for this resource (if any)
- Returns:
- The new Resources instance.
- Throws:
ResourcesException
- if a Resources
instance
of the specified logical name cannot be created.
Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.