org.geotools.referencing.factory
Class ReferencingFactory

Object
  extended by AbstractFactory
      extended by ReferencingFactory
All Implemented Interfaces:
RegisterableService, Factory
Direct Known Subclasses:
AbstractAuthorityFactory, AbstractCoordinateOperationFactory, DatumAliases, DefaultMathTransformFactory, ReferencingFactoryContainer, ReferencingObjectFactory

public class ReferencingFactory
extends AbstractFactory
implements Factory

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

Since:
2.1
Author:
Martin Desruisseaux (IRD)
Module:

Field Summary
static Logger LOGGER
          The logger for event related to Geotools's factories.
 
Fields inherited from class 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(String name, Object object)
          Makes sure that an argument is non-null.
 Citation getVendor()
          Returns the vendor responsible for creating this factory implementation.
 
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
 

Field Detail

LOGGER

public static final 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 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(String name,
                                    Object object)
                             throws 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:
InvalidParameterValueException - if object is null.


Copyright © 1996-2009 Geotools. All Rights Reserved.