org.geotools.referencing.factory
Class AbstractFactory

java.lang.Object
  extended byorg.geotools.factory.AbstractFactory
      extended byorg.geotools.referencing.factory.AbstractFactory
All Implemented Interfaces:
Factory, org.opengis.referencing.Factory, javax.imageio.spi.RegisterableService
Direct Known Subclasses:
AbstractAuthorityFactory, AbstractCoordinateOperationFactory, DatumAliases, GeotoolsFactory

public class AbstractFactory
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: AbstractFactory.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Martin Desruisseaux

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 AbstractFactory()
          Constructs a factory with the default priority.
protected AbstractFactory(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
getImplementationHints, onDeregistration, onRegistration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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

AbstractFactory

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


AbstractFactory

protected AbstractFactory(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.

Specified by:
getVendor in interface org.opengis.referencing.Factory
Returns:
The vendor for this factory implementation.

ensureNonNull

protected static void ensureNonNull(java.lang.String name,
                                    java.lang.Object object)
                             throws java.lang.IllegalArgumentException
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 is null.
java.lang.IllegalArgumentException


Copyright © GeoTools. All Rights Reserved.