public final class ResourceManager extends Object
Constructor and Description |
---|
ResourceManager()
Create an instance
|
ResourceManager(String name)
Create an instance
|
Modifier and Type | Method and Description |
---|---|
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
|
void |
releaseAllResources()
Release all resources
|
void |
releaseResource(ManagedResource object)
Release the specified resource
|
String |
toString()
Return a string representation of this object
|
public ResourceManager()
public ResourceManager(String name)
name
- The name of this object.public final Object getResource(String name)
name
- The name of the factorypublic final void releaseResource(ManagedResource object)
object
- The resource to releasepublic void releaseAllResources()
public void addFactory(String name, ResourceFactory factory)
name
- The feature to be added to the Factory attributefactory
- The feature to be added to the Factory attributeCopyright © 1998–2014 Gargoyle Software Inc.. All rights reserved.