de.intarsys.tools.transaction
Class CommonResourceType<T extends IResource>
java.lang.Object
de.intarsys.tools.transaction.CommonResourceType<T>
- Type Parameters:
T -
- All Implemented Interfaces:
- IResourceType<T>, Serializable
- Direct Known Subclasses:
- FileSystemResourceType
public abstract class CommonResourceType<T extends IResource>
- extends Object
- implements IResourceType<T>, Serializable
A common implementation for the IResourceType.
- See Also:
- Serialized Form
CommonResourceType
public CommonResourceType()
createResource
public abstract T createResource(T parent)
throws ResourceException
- Description copied from interface:
IResourceType
- Create a new
IResource instance. The IResource may be
nested within a parent resource.
- Specified by:
createResource in interface IResourceType<T extends IResource>
- Returns:
- The new
IResource
- Throws:
ResourceException
getResource
public T getResource()
throws ResourceException
- Throws:
ResourceException
getResource
public T getResource(boolean create)
throws ResourceException
- Throws:
ResourceException
Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.