org.apache.commons.resources.impl
Class CollResourcesFactory

java.lang.Object
  extended by org.apache.commons.resources.impl.ResourcesFactoryBase
      extended by org.apache.commons.resources.impl.CollResourcesFactory
All Implemented Interfaces:
Serializable, org.apache.commons.resources.ResourcesFactory

public class CollResourcesFactory
extends org.apache.commons.resources.impl.ResourcesFactoryBase

Concrete implementation of ResourcesFactory for unit tests.

See Also:
Serialized Form

Constructor Summary
CollResourcesFactory()
           
 
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
 

Constructor Detail

CollResourcesFactory

public CollResourcesFactory()
Method Detail

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 create
config - 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.