org.apache.commons.transaction.resource
Interface ResourceManager<R>

All Known Implementing Classes:
FileResourceManager, TxFileResourceManager, TxFileResourceManager.FileTxContext

public interface ResourceManager<R>

Interface for a manager on resources. All meaningful work is done using the interface for the resource.


Method Summary
 R getResource(String path)
          Gets the resource denoted by the path
 String getRootPath()
          Gets the root path of this manager.
 

Method Detail

getResource

R getResource(String path)
              throws ResourceException
Gets the resource denoted by the path

Parameters:
path - the path of the resource
Returns:
the resource denoted by the path
Throws:
ResourceException - in case anything goes fatally wrong

getRootPath

String getRootPath()
Gets the root path of this manager.

Returns:
the root path or null if no applicable


Copyright © 2004-2007 The Apache Software Foundation. All Rights Reserved.