org.geotools.referencing.factory
Class ReferencingFactory

java.lang.Object
  extended by org.geotools.factory.AbstractFactory
      extended by org.geotools.referencing.factory.ReferencingFactory
All Implemented Interfaces:
javax.imageio.spi.RegisterableService, Factory
Direct Known Subclasses:
AbstractAuthorityFactory, AbstractCoordinateOperationFactory, DatumAliases, DefaultMathTransformFactory, ReferencingFactoryContainer, ReferencingObjectFactory

public class ReferencingFactory
extends AbstractFactory
implements org.opengis.referencing.Factory

Base class for all factories in the referencing module. Factories can be grouped in two categories:

Since:
2.1
Version:
$Id: ReferencingFactory.java 30641 2008-06-12 17:42:27Z acuster $
Author:
Martin Desruisseaux (IRD)

Field Summary
static java.util.logging.Logger LOGGER
          The logger for event related to Geotools's factories.
 
Fields inherited from class org.geotools.factory.AbstractFactory
hints, MAXIMUM_PRIORITY, MINIMUM_PRIORITY, NORMAL_PRIORITY, priority
 
Constructor Summary
protected ReferencingFactory()
          Constructs a factory with the default priority.
protected ReferencingFactory(int priority)
          Constructs a factory with the specified priority.
 
Method Summary
protected static void ensureNonNull(java.lang.String name, java.lang.Object object)
          Makes sure that an argument is non-null.
 org.opengis.metadata.citation.Citation getVendor()
          Returns the vendor responsible for creating this factory implementation.
 
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
 

Field Detail

LOGGER

public static final java.util.logging.Logger LOGGER
The logger for event related to Geotools's factories.

Constructor Detail

ReferencingFactory

protected ReferencingFactory()
Constructs a factory with the default priority.


ReferencingFactory

protected ReferencingFactory(int priority)
Constructs a factory with the specified priority.

Parameters:
priority - The priority for this factory, as a number between MINIMUM_PRIORITY and MAXIMUM_PRIORITY inclusive.
Method Detail

getVendor

public org.opengis.metadata.citation.Citation getVendor()
Returns the vendor responsible for creating this factory implementation. Many implementations may be available for the same factory interface. The default implementation returns Geotools.

Returns:
The vendor for this factory implementation.

ensureNonNull

protected static void ensureNonNull(java.lang.String name,
                                    java.lang.Object object)
                             throws org.opengis.parameter.InvalidParameterValueException
Makes sure that an argument is non-null. This is a convenience method for subclass methods.

Parameters:
name - Argument name.
object - User argument.
Throws:
org.opengis.parameter.InvalidParameterValueException - if object is null.


Copyright © 1996-2010 Geotools. All Rights Reserved.