org.geotoolkit.referencing.factory
Class ReferencingFactory

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

@ThreadSafe
public class ReferencingFactory
extends Factory
implements Factory

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

Since:
2.1
Version:
3.00
Author:
Martin Desruisseaux (IRD)
Module:
referencing/geotk-referencing (download)    View source code for this class

Nested Class Summary
 
Nested classes/interfaces inherited from class Factory
Factory.Availability, Factory.Organizer
 
Field Summary
static Logger LOGGER
          The logger for event related to Geotk factories.
 
Fields inherited from class Factory
EMPTY_HINTS, hints
 
Constructor Summary
protected ReferencingFactory()
          Constructs a factory.
 
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 Factory
availability, dispose, equals, getImplementationHints, hasCompatibleHints, hashCode, setOrdering, 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 Geotk factories.

Constructor Detail

ReferencingFactory

protected ReferencingFactory()
Constructs a factory.

Method Detail

getVendor

public Citation getVendor()
Returns the vendor responsible for creating this factory implementation. Many implementations from different vendors may be available for the same factory interface.

The default for Geotk implementations is to return Geotoolkit.org.

Specified by:
getVendor in interface Factory
Returns:
The vendor for this factory implementation.
See Also:
Citations.GEOTOOLKIT

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 © 2009-2011 Geotoolkit.org. All Rights Reserved.