org.geotools.referencing.factory.epsg
Class HsqlDialectEpsgMediator

Object
  extended by AbstractFactory
      extended by ReferencingFactory
          extended by AbstractAuthorityFactory
              extended by AbstractAuthorityMediator
                  extended by AbstractEpsgMediator
                      extended by HsqlDialectEpsgMediator
All Implemented Interfaces:
RegisterableService, BufferedFactory, Factory, AuthorityFactory, CRSAuthorityFactory, CSAuthorityFactory, DatumAuthorityFactory, CoordinateOperationAuthorityFactory

public class HsqlDialectEpsgMediator
extends AbstractEpsgMediator

Mediator which delegates the creation of referencing objects to the HsqlDialectEpsgFactory.

Author:
Cory Horner (Refractions Research)
Module:
modules/plugin/epsg-hsql (gt-epsg-hsql.jar)

Nested Class Summary
 
Nested classes/interfaces inherited from class AbstractAuthorityMediator
AbstractAuthorityMediator.WorkerSafeRunnable
 
Field Summary
 
Fields inherited from class AbstractEpsgMediator
datasource, PRIORITY
 
Fields inherited from class AbstractAuthorityMediator
factories
 
Fields inherited from class AbstractFactory
MAXIMUM_PRIORITY, MINIMUM_PRIORITY, NORMAL_PRIORITY, priority
 
Constructor Summary
HsqlDialectEpsgMediator()
          Creates a new instance of this factory.
HsqlDialectEpsgMediator(Hints hints)
          Creates a new instance of this data source using the specified hints.
HsqlDialectEpsgMediator(int priority, DataSource datasource)
          Creates an HsqlDialectEpsgMediator with a 20 min timeout, single worker, and no cache.
HsqlDialectEpsgMediator(int priority, Hints hints, DataSource datasource)
           
 
Method Summary
protected  void activateWorker(AbstractCachedAuthorityFactory obj)
          Reinitialize an instance to be returned by the pool.
protected  void destroyWorker(AbstractCachedAuthorityFactory obj)
          Destroys an instance no longer needed by the pool.
protected  AbstractCachedAuthorityFactory makeWorker()
          Creates an instance that can be returned by the pool.
protected  void passivateWorker(AbstractCachedAuthorityFactory obj)
          Uninitialize an instance to be returned to the pool.
protected  boolean validateWorker(AbstractCachedAuthorityFactory obj)
          Ensures that the instance is safe to be returned by the pool.
 
Methods inherited from class AbstractEpsgMediator
dispose, getAuthority, getConnection, getDescriptionText, isConnected
 
Methods inherited from class AbstractAuthorityMediator
completeHints, createCartesianCS, createCompoundCRS, createCoordinateOperation, createCoordinateReferenceSystem, createCoordinateSystem, createCoordinateSystemAxis, createCylindricalCS, createDatum, createDerivedCRS, createEllipsoid, createEllipsoidalCS, createEngineeringDatum, createFromCoordinateReferenceSystemCodes, createGeocentricCRS, createGeodeticDatum, createGeographicCRS, createImageCRS, createImageDatum, createObject, createPolarCS, createPrimeMeridian, createProjectedCRS, createSphericalCS, createTemporalCRS, createTemporalDatum, createTimeCS, createUnit, createVerticalCRS, createVerticalCS, createVerticalDatum, createWith, getAuthorityCodes, getBackingStoreDescription, getIdentifiedObjectFinder, toKey, trimAuthority
 
Methods inherited from class AbstractAuthorityFactory
createEngineeringCRS, createExtent, createOperationMethod, createParameterDescriptor, noSuchAuthorityCode
 
Methods inherited from class ReferencingFactory
ensureNonNull, getVendor
 
Methods inherited from class AbstractFactory
addImplementationHints, equals, getImplementationHints, getPriority, hashCode, onDeregistration, onRegistration, toString
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface Factory
getVendor
 
Methods inherited from interface CRSAuthorityFactory
createEngineeringCRS
 
Methods inherited from interface Factory
getVendor
 
Methods inherited from interface Factory
getVendor
 
Methods inherited from interface Factory
getVendor
 
Methods inherited from interface Factory
getVendor
 
Methods inherited from interface Factory
getImplementationHints
 

Constructor Detail

HsqlDialectEpsgMediator

public HsqlDialectEpsgMediator()
                        throws FactoryException
Creates a new instance of this factory.

Throws:
FactoryException

HsqlDialectEpsgMediator

public HsqlDialectEpsgMediator(Hints hints)
                        throws FactoryException
Creates a new instance of this data source using the specified hints. The priority is set to a lower value than the FactoryOnAccess's one in order to give precedence to the Access-backed database, if presents. Priorities are set that way because:

Throws:
FactoryException

HsqlDialectEpsgMediator

public HsqlDialectEpsgMediator(int priority,
                               DataSource datasource)
Creates an HsqlDialectEpsgMediator with a 20 min timeout, single worker, and no cache.

Parameters:
priority -
datasource -

HsqlDialectEpsgMediator

public HsqlDialectEpsgMediator(int priority,
                               Hints hints,
                               DataSource datasource)
Method Detail

activateWorker

protected void activateWorker(AbstractCachedAuthorityFactory obj)
                       throws Exception
Reinitialize an instance to be returned by the pool.

Specified by:
activateWorker in class AbstractAuthorityMediator
Throws:
Exception

destroyWorker

protected void destroyWorker(AbstractCachedAuthorityFactory obj)
                      throws Exception
Destroys an instance no longer needed by the pool.

Specified by:
destroyWorker in class AbstractAuthorityMediator
Throws:
Exception

makeWorker

protected AbstractCachedAuthorityFactory makeWorker()
                                             throws Exception
Creates an instance that can be returned by the pool.

Specified by:
makeWorker in class AbstractAuthorityMediator
Throws:
Exception

passivateWorker

protected void passivateWorker(AbstractCachedAuthorityFactory obj)
                        throws Exception
Uninitialize an instance to be returned to the pool.

Specified by:
passivateWorker in class AbstractAuthorityMediator
Throws:
Exception

validateWorker

protected boolean validateWorker(AbstractCachedAuthorityFactory obj)
Ensures that the instance is safe to be returned by the pool.

Specified by:
validateWorker in class AbstractAuthorityMediator


Copyright © 1996-2009 Geotools. All Rights Reserved.