org.geotools.referencing.factory.epsg
Class HsqlDialectEpsgMediator
java.lang.Object
org.geotools.factory.AbstractFactory
org.geotools.referencing.factory.ReferencingFactory
org.geotools.referencing.factory.AbstractAuthorityFactory
org.geotools.referencing.factory.AbstractAuthorityMediator
org.geotools.referencing.factory.AbstractEpsgMediator
org.geotools.referencing.factory.epsg.HsqlDialectEpsgMediator
- All Implemented Interfaces:
- javax.imageio.spi.RegisterableService, BufferedFactory, Factory, org.opengis.referencing.AuthorityFactory, org.opengis.referencing.crs.CRSAuthorityFactory, org.opengis.referencing.cs.CSAuthorityFactory, org.opengis.referencing.datum.DatumAuthorityFactory, org.opengis.referencing.operation.CoordinateOperationAuthorityFactory
public class HsqlDialectEpsgMediator
- extends AbstractEpsgMediator
Mediator which delegates the creation of referencing objects to the
HsqlDialectEpsgFactory.
- Author:
- Cory Horner (Refractions Research)
Methods inherited from class org.geotools.referencing.factory.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 java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.opengis.referencing.crs.CRSAuthorityFactory |
createEngineeringCRS |
Methods inherited from interface org.opengis.referencing.Factory |
getVendor |
HsqlDialectEpsgMediator
public HsqlDialectEpsgMediator()
throws org.opengis.referencing.FactoryException
- Creates a new instance of this factory.
- Throws:
org.opengis.referencing.FactoryException
HsqlDialectEpsgMediator
public HsqlDialectEpsgMediator(Hints hints)
throws org.opengis.referencing.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:
- The MS-Access format is the primary EPSG database format.
- If a user downloads the MS-Access database himself, he probably wants to use it.
- Throws:
org.opengis.referencing.FactoryException
HsqlDialectEpsgMediator
public HsqlDialectEpsgMediator(int priority,
javax.sql.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,
javax.sql.DataSource datasource)
activateWorker
protected void activateWorker(AbstractCachedAuthorityFactory obj)
throws java.lang.Exception
- Reinitialize an instance to be returned by the pool.
- Specified by:
activateWorker
in class AbstractAuthorityMediator
- Throws:
java.lang.Exception
destroyWorker
protected void destroyWorker(AbstractCachedAuthorityFactory obj)
throws java.lang.Exception
- Destroys an instance no longer needed by the pool.
- Specified by:
destroyWorker
in class AbstractAuthorityMediator
- Throws:
java.lang.Exception
makeWorker
protected AbstractCachedAuthorityFactory makeWorker()
throws java.lang.Exception
- Creates an instance that can be returned by the pool.
- Specified by:
makeWorker
in class AbstractAuthorityMediator
- Throws:
java.lang.Exception
passivateWorker
protected void passivateWorker(AbstractCachedAuthorityFactory obj)
throws java.lang.Exception
- Uninitialize an instance to be returned to the pool.
- Specified by:
passivateWorker
in class AbstractAuthorityMediator
- Throws:
java.lang.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-2010 Geotools. All Rights Reserved.