org.n52.connectors.core
Class AbstractFactory

java.lang.Object
  extended by org.n52.connectors.core.AbstractFactory
All Implemented Interfaces:
ConnectorCreation
Direct Known Subclasses:
ConnectorFactory

public abstract class AbstractFactory
extends java.lang.Object
implements ConnectorCreation

Adds a number of convenience functions to the ConnectorCreation. It also contains the core of the administration for the available regsitries. Every connector must be told where it can find its registries. Local registries are added by setting a locally created registry object; remote registries can be added by setting an URL.

Author:
martin schouwenburg

Constructor Summary
AbstractFactory()
           
 
Method Summary
 void addRegistry(ConnectorTypeRegistry registry)
          adds a certain registry to the set of registries that will be searched to find certain functionality
 void addRegistry(java.net.URL location)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.n52.connectors.core.ConnectorCreation
getServiceAdapter, getServiceAdapters
 

Constructor Detail

AbstractFactory

public AbstractFactory()
Method Detail

addRegistry

public void addRegistry(ConnectorTypeRegistry registry)
Description copied from interface: ConnectorCreation
adds a certain registry to the set of registries that will be searched to find certain functionality

Specified by:
addRegistry in interface ConnectorCreation
Parameters:
registry - a registry made locally to query for functionality

addRegistry

public void addRegistry(java.net.URL location)