deegree 2.2 (2008/12/22 11:33 build-3038-official)

org.deegree.crs.configuration
Class CRSConfiguration

java.lang.Object
  extended by org.deegree.crs.configuration.CRSConfiguration

public class CRSConfiguration
extends Object

The CRSConfiguration creates, instantiates and supplies a configured CRS-Provider. Because only one crs-configuration is needed inside the JVM, this implementation uses a singleton pattern.

The configuration will try to read the file: crs_providers.properties. It uses following strategie to load this file, first the root directory (e.g. '/' or WEB-INF/classes ) will be searched. If no file was found there, it will try to load from the package. The properties file must denote a property with name 'CRS_PROVIDER' followed by a '=' and a fully qualified name denoting the class (an instance of CRSProvider) which should be available in the classpath. This class must have an empty constructor.

Version:
$Revision:$, $Date:$
Author:
Rutger Bezema, last edited by: $Author:$

Method Summary
static CRSConfiguration getCRSConfiguration()
          creates or returns an instance of the CRSConfiguration by reading the DEFAULT property configured in the 'crs_providers.properties'.
 CRSProvider getProvider()
           
static void main(String[] args)
          export the given file to the deegree-crs format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCRSConfiguration

public static CRSConfiguration getCRSConfiguration()
                                            throws CRSConfigurationException
creates or returns an instance of the CRSConfiguration by reading the DEFAULT property configured in the 'crs_providers.properties'. If no key is given (or no string could be loaded), the DeegreeCRSProvider will be used.

Parameters:
csAccessKey -
Returns:
an instance of a CRS-Configuration with the configured CRSProvider.
Throws:
CRSConfigurationException - if --anything-- went wrong while instantiating the CRSProvider.

main

public static void main(String[] args)
export the given file to the deegree-crs format.

Parameters:
args -

getProvider

public final CRSProvider getProvider()
Returns:
the crs provider.

deegree 2.2 (2008/12/22 11:33 build-3038-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net