org.chwf.resources
Interface ManagedResourceFactory
- All Superinterfaces:
- ResourceFactory
- public interface ManagedResourceFactory
- extends ResourceFactory
Interface for managed resource factories. A managed resource can only be
used while the ResourceManager is initialized, and is returned its
ResourceFactory when the ResourceManager is released.
- Author:
- Paul Strack
Method Summary |
void |
release(java.lang.Object resource,
java.lang.Throwable error)
Releases the resource back to the factory, so that the factory can
perform necessary cleanup. |
release
public void release(java.lang.Object resource,
java.lang.Throwable error)
throws ResourceException
- Releases the resource back to the factory, so that the factory can
perform necessary cleanup.
- Parameters:
resource
- The resource.error
- A report of any errors during the use of this resource. If
there were no errors, this value is null.- Throws:
ResourceException
- For failures during resource cleanup.
Copyright © 2002-2004, Paul Strack. All Rights Reserved.