Beispiel #1
0
 /** @return Returns a singleton instance of the GeometryHandler. */
 public static GeometryHandler getInstance() {
   if (instance == null) {
     creationLock.lock();
     try {
       if (instance == null) {
         // don't set instance before configuring, or other threads
         // can get access to unconfigured instance!
         final GeometryHandler newInstance = new GeometryHandler();
         SettingsManager.getInstance().configure(newInstance);
         newInstance.initCrsAuthoritycrsAuthority();
         instance = newInstance;
       }
     } finally {
       creationLock.unlock();
     }
   }
   return instance;
 }