public abstract class ALfnTileStoreProvider extends Object
A provider that can provide a Tile Store
based on a URI.
The contract of getTileStore(URI)
is that callers of this method are responsible for
closing the returned tile store instance. Implementations of this class should take this into
account. Implementations can choose to:
close
method.It is advised not to create and cache tile store instances in a tile store provider. Doing so makes it unclear when a tile store instance must be disposed.
Constructor and Description |
---|
ALfnTileStoreProvider() |
Modifier and Type | Method and Description |
---|---|
abstract ALfnTileStore |
getTileStore(URI aUri)
Returns a Tile Store for the given URI.
|
public abstract ALfnTileStore getTileStore(URI aUri) throws IOException, TLfnServiceException
Returns a Tile Store for the given URI.
Caller code must always close the returned tile store instance after using it. See class doc for more information.
aUri
- The URI to create the Tile Store forIOException
- if the Tile Store cannot be opened because of unexpected IO reasonsTLfnServiceException
- if the Tile Store cannot be opened because of unexpected reasons