com.gargoylesoftware.base.resource
public final class ResourceManager extends Object
Version: $Revision: 1.3 $
Field Summary | |
---|---|
String | name_ |
Map | resourceFactories_ |
Constructor Summary | |
---|---|
ResourceManager()
Create an instance | |
ResourceManager(String name)
Create an instance
|
Method Summary | |
---|---|
void | addFactory(String name, ResourceFactory factory)
Adds a feature to the Factory attribute of the ResourceManager object
|
Object | getResource(String name)
Return a resource from the specified factory
|
ResourceFactory | getResourceFactory(String name) |
void | releaseAllResources()
Release all resources |
void | releaseResource(ManagedResource object)
Release the specified resource
|
String | toString()
Return a string representation of this object |
Parameters: name The name of this object.
Parameters: name The feature to be added to the Factory attribute factory The feature to be added to the Factory attribute
Parameters: name The name of the factory
Returns: The specified resource
Parameters: name Description of Parameter
Returns: The resourceFactory value
Throws: ResourceFactoryNotFoundException Description of Exception
Parameters: object The resource to release
Returns: A string respresentation of this object.