intarsys runtime library

de.intarsys.tools.transaction
Class CommonResourceType<T extends IResource>

java.lang.Object
  extended by 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

Constructor Summary
CommonResourceType()
           
 
Method Summary
abstract  T createResource(T parent)
          Create a new IResource instance.
 T getResource()
           
 T getResource(boolean create)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommonResourceType

public CommonResourceType()
Method Detail

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

intarsys runtime library

Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.