org.apache.commons.resources.impl
Class TestResourcesFactory
java.lang.Object
org.apache.commons.resources.impl.ResourcesFactoryBase
org.apache.commons.resources.impl.TestResourcesFactory
- All Implemented Interfaces:
- Serializable, org.apache.commons.resources.ResourcesFactory
public class TestResourcesFactory
- extends org.apache.commons.resources.impl.ResourcesFactoryBase
Concrete implementation of ResourcesFactory for unit tests.
- See Also:
- Serialized Form
|
Method Summary |
protected org.apache.commons.resources.Resources |
createResources(String name,
String config)
Create and return a new Resources instance with the
specified logical name, after calling its init()
method. |
| Methods inherited from class org.apache.commons.resources.impl.ResourcesFactoryBase |
getResources, getResources, isReturnNull, release, setReturnNull |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestResourcesFactory
public TestResourcesFactory()
createResources
protected org.apache.commons.resources.Resources createResources(String name,
String config)
throws org.apache.commons.resources.ResourcesException
Create and return a new Resources instance with the
specified logical name, after calling its init()
method.
- Specified by:
createResources in class org.apache.commons.resources.impl.ResourcesFactoryBase
- Parameters:
name - Logical name of the Resources instance to createconfig - Configuration string for this resource (if any)
- Throws:
org.apache.commons.resources.ResourcesException - if a Resources instance
of the specified logical name cannot be created.
Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.