org.geotools.referencing.factory.epsg
Class OracleDialectEpsgMediator

java.lang.Object
  extended by org.geotools.factory.AbstractFactory
      extended by org.geotools.referencing.factory.ReferencingFactory
          extended by org.geotools.referencing.factory.AbstractAuthorityFactory
              extended by org.geotools.referencing.factory.AbstractAuthorityMediator
                  extended by org.geotools.referencing.factory.AbstractEpsgMediator
                      extended by org.geotools.referencing.factory.epsg.OracleDialectEpsgMediator
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 OracleDialectEpsgMediator
extends AbstractEpsgMediator

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

Author:
Cory Horner (Refractions Research)

Nested Class Summary
 
Nested classes/interfaces inherited from class org.geotools.referencing.factory.AbstractAuthorityMediator
AbstractAuthorityMediator.WorkerSafeRunnable
 
Field Summary
 
Fields inherited from class org.geotools.referencing.factory.AbstractEpsgMediator
datasource, PRIORITY
 
Fields inherited from class org.geotools.referencing.factory.AbstractAuthorityMediator
factories
 
Fields inherited from class org.geotools.factory.AbstractFactory
hints, MAXIMUM_PRIORITY, MINIMUM_PRIORITY, NORMAL_PRIORITY, priority
 
Constructor Summary
OracleDialectEpsgMediator()
          No argument constructor - must not fail for factory finder registration.
OracleDialectEpsgMediator(Hints hints)
           
OracleDialectEpsgMediator(int priority, javax.sql.DataSource datasource)
          Creates an OracleDialectEpsgMediator with a 60 second timeout, two workers, and no cache.
OracleDialectEpsgMediator(int priority, Hints hints, javax.sql.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)
          Uninitialized 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 org.geotools.referencing.factory.AbstractEpsgMediator
dispose, getAuthority, getConnection, getDescriptionText, isConnected
 
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 org.geotools.referencing.factory.AbstractAuthorityFactory
createEngineeringCRS, createExtent, createOperationMethod, createParameterDescriptor, noSuchAuthorityCode
 
Methods inherited from class org.geotools.referencing.factory.ReferencingFactory
ensureNonNull, getVendor
 
Methods inherited from class org.geotools.factory.AbstractFactory
addImplementationHints, equals, getImplementationHints, getPriority, hashCode, onDeregistration, onRegistration, toString
 
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
 
Methods inherited from interface org.geotools.factory.Factory
getImplementationHints
 

Constructor Detail

OracleDialectEpsgMediator

public OracleDialectEpsgMediator()
No argument constructor - must not fail for factory finder registration.


OracleDialectEpsgMediator

public OracleDialectEpsgMediator(Hints hints)
                          throws org.opengis.referencing.FactoryException
Throws:
org.opengis.referencing.FactoryException

OracleDialectEpsgMediator

public OracleDialectEpsgMediator(int priority,
                                 Hints hints,
                                 javax.sql.DataSource datasource)

OracleDialectEpsgMediator

public OracleDialectEpsgMediator(int priority,
                                 javax.sql.DataSource datasource)
Creates an OracleDialectEpsgMediator with a 60 second timeout, two workers, and no cache.

Parameters:
priority -
datasource -
Method Detail

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
Uninitialized 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.