Class MemoryResource
java.lang.Object
org.gvsig.fmap.dal.resource.spi.AbstractResource
org.gvsig.fmap.dal.resource.spi.AbstractNonBlockingResource
org.gvsig.fmap.dal.feature.spi.memory.MemoryResource
- All Implemented Interfaces:
org.gvsig.fmap.dal.resource.Resource,org.gvsig.fmap.dal.resource.spi.ResourceProvider,org.gvsig.tools.observer.Observable,org.gvsig.tools.observer.WeakReferencingObservable
Resource based on memory. It may be used to represent some data loaded into
memory, so it can be named as the data or the source resource loaded.
- Author:
- 2009- César Ordiñana - gvSIG team
-
Field Summary
FieldsFields inherited from class org.gvsig.fmap.dal.resource.spi.AbstractResource
lock, multiResourcelock -
Constructor Summary
ConstructorsConstructorDescriptionMemoryResource(MemoryResourceParameters parameters) Creates a newMemoryResource. -
Method Summary
Methods inherited from class org.gvsig.fmap.dal.resource.spi.AbstractNonBlockingResource
executeMethods inherited from class org.gvsig.fmap.dal.resource.spi.AbstractResource
addConsumer, addObserver, addObservers, closeRequest, deleteObserver, deleteObservers, executeBegins, executeEnds, getConsumerAt, getConsumersCount, getData, getLastTimeOpen, getLastTimeUsed, getParameters, inUse, isOpen, notifyChanges, notifyClose, notifyDispose, notifyObserver, notifyOpen, openCount, performExecution, prepare, prepare, removeConsumer, setData, updateLastTimeOpen, updateLastTimeUsed
-
Field Details
-
NAME
- See Also:
-
DESCRIPTION
- See Also:
-
-
Constructor Details
-
MemoryResource
public MemoryResource(MemoryResourceParameters parameters) throws org.gvsig.fmap.dal.exception.InitializeException Creates a newMemoryResource.- Parameters:
parameters- to create the resource- Throws:
org.gvsig.fmap.dal.exception.InitializeException- if there is an error creating the resource
-
-
Method Details
-
get
Description copied from class:AbstractResourceReturns the real resource represented by this object.- Specified by:
getin interfaceorg.gvsig.fmap.dal.resource.Resource- Specified by:
getin classAbstractResource- Throws:
org.gvsig.fmap.dal.resource.exception.AccessResourceException- if there is an error while accessing the resource
-
getName
Description copied from class:AbstractResourceReturns the name of theResource.- Specified by:
getNamein interfaceorg.gvsig.fmap.dal.resource.Resource- Specified by:
getNamein classAbstractResource- Throws:
org.gvsig.fmap.dal.resource.exception.AccessResourceException- if there is an error while accessing the resource
-
isThis
public boolean isThis(org.gvsig.fmap.dal.resource.ResourceParameters parameters) throws org.gvsig.fmap.dal.resource.exception.ResourceException - Throws:
org.gvsig.fmap.dal.resource.exception.ResourceException
-