|
deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree.crs.configuration.CRSConfiguration
public class CRSConfiguration
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.
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 |
---|
public static CRSConfiguration getCRSConfiguration() throws CRSConfigurationException
DeegreeCRSProvider
will be used.
csAccessKey
-
CRSConfigurationException
- if --anything-- went wrong while instantiating the CRSProvider.public static void main(String[] args)
args
- public final CRSProvider getProvider()
|
deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net