Class StoreProvider
The provider of
Store instances. Given a StorageConnector input,
this class tries to instantiate a GPX Store.- Since:
- 0.8
- Version:
- 1.3
-
Nested Class Summary
Nested classes/interfaces inherited from class DataStoreProvider
DataStoreProvider.Prober<S> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe format name.(package private) static final VersionThe "1.0" version.(package private) static final VersionThe "1.1" version.The range of versions returned bygetSupportedVersions().Fields inherited from class AbstractProvider
MIME_TYPE, mimeForNameSpaces, mimeForRootElementsFields inherited from class URIDataStore.Provider
CREATE_PARAM, ENCODING, LOCATION_PARAMFields inherited from class DataStoreProvider
CREATE, LOCATION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected JAXBContextReturns the JAXB context for the data store.Returns the range of versions supported by the GPX data store.open(StorageConnector connector) Returns a GPXStoreimplementation associated with this provider.Methods inherited from class AbstractProvider
probeContentMethods inherited from class DocumentedStoreProvider
getFormat, getFormat, getShortNameMethods inherited from class URIDataStore.Provider
build, connector, descriptor, getOpenParameters, isWritableMethods inherited from class DataStoreProvider
getLogger, open, probeContent
-
Field Details
-
NAME
-
V1_0
The "1.0" version. -
V1_1
The "1.1" version. -
VERSIONS
The range of versions returned bygetSupportedVersions().
-
-
Constructor Details
-
StoreProvider
public StoreProvider()Creates a new GPX store provider.
-
-
Method Details
-
getSupportedVersions
Returns the range of versions supported by the GPX data store.- Overrides:
getSupportedVersionsin classDataStoreProvider- Returns:
- the range of supported versions.
-
open
Returns a GPXStoreimplementation associated with this provider.- Specified by:
openin classDataStoreProvider- Parameters:
connector- information about the storage (URL, stream, etc).- Returns:
- a data store implementation associated with this provider for the given storage.
- Throws:
DataStoreException- if an error occurred while creating the data store instance.- See Also:
-
getJAXBContext
Returns the JAXB context for the data store. This method is invoked at most once.- Overrides:
getJAXBContextin classStaxDataStoreProvider- Returns:
- the JAXB context.
- Throws:
JAXBException- if an error occurred while creating the JAXB context.
-