Пример #1
0
 /** Constructs an authority factory using the specified hints and priority. */
 protected FactoryUsingWKT(final Hints userHints, final int priority) {
   super(userHints, priority);
   factories = ReferencingFactoryContainer.instance(userHints);
   Object hint = null;
   if (userHints != null) {
     hint = userHints.get(Hints.CRS_AUTHORITY_EXTRA_DIRECTORY);
   }
   if (hint instanceof File) {
     directory = (File) hint;
   } else if (hint instanceof String) {
     directory = new File((String) hint);
   } else {
     directory = null;
   }
   hints.put(Hints.CRS_AUTHORITY_EXTRA_DIRECTORY, directory);
   // Disposes the cached property file after at least 15 minutes of inactivity.
   setTimeout(15 * 60 * 1000L);
 }