Class DSFinderRepository

  • All Implemented Interfaces:
    Repository

    public class DSFinderRepository
    extends Object
    implements Repository
    Implementation of Repository This class interprets the data source name as a file name or an URL for a property file containing the ds creation parameters

    For shape files ending with .shp or SHP, the shape file could be passed as name

    Author:
    Christian Mueller
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      DataAccess<?,​?> access​(Name name)
      Search for the DataAccess (may be a DataStore) by name.
      void clear()  
      DataStore dataStore​(Name name)
      Search for the DataStore by name.
      List<DataStore> getDataStores()
      List of available DataStore instances; these are considered to be live/connected datastores under the management of the application and should not be closed or otherwise harmed by client code.
      protected URL getURLForLocation​(String location)  
      void initialize​(Object source)  
      • Methods inherited from class Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DSFinderRepository

        public DSFinderRepository()
    • Method Detail

      • clear

        public void clear()
      • getURLForLocation

        protected URL getURLForLocation​(String location)
                                 throws IOException
        Throws:
        IOException
      • initialize

        public void initialize​(Object source)
      • access

        public DataAccess<?,​?> access​(Name name)
        Description copied from interface: Repository
        Search for the DataAccess (may be a DataStore) by name.
        Specified by:
        access in interface Repository
        Parameters:
        name - The Name (namespace and name) to search for
        Returns:
        DataAccess
      • dataStore

        public DataStore dataStore​(Name name)
        Description copied from interface: Repository
        Search for the DataStore by name.
        Specified by:
        dataStore in interface Repository
        Parameters:
        name - The typeName (namespace and name) to search for
        Returns:
        DataAccess api providing access to the indicatedTypeName (or null if not found)
      • getDataStores

        public List<DataStore> getDataStores()
        Description copied from interface: Repository
        List of available DataStore instances; these are considered to be live/connected datastores under the management of the application and should not be closed or otherwise harmed by client code.

        Specified by:
        getDataStores in interface Repository
        Returns:
        List of Managed DataStore instances