org.apache.commons.resources.impl
Class JDBCResourcesFactory
java.lang.Object
org.apache.commons.resources.impl.ResourcesFactoryBase
org.apache.commons.resources.impl.JDBCResourcesFactory
- All Implemented Interfaces:
- Serializable, ResourcesFactory
public class JDBCResourcesFactory
- extends ResourcesFactoryBase
Concrete implementation of
ResourcesFactory that creates
Resources instances that wraps
a JDBC database connection and retrieves values for the given
Locale and have name suffixes reflecting the
Locale for which the document's messages apply.
For this specific implementation, resources are looked up in
a hierarchy of database values in a manner identical to that
performed by java.util.ResourceBundle.getBundle()..
- Version:
- $Revision: 349025 $
- Author:
- James Mitchell
- 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 |
JDBCResourcesFactory
public JDBCResourcesFactory()
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.