org.n52.connectors.core
Class AbstractServiceFactory

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

public abstract class AbstractServiceFactory
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

Field Summary
protected  java.util.ArrayList<ConnectorTypeRegistry> registries
           
 
Constructor Summary
AbstractServiceFactory()
           
 
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)
           
protected  org.w3c.dom.Document getClassInfo(java.lang.String respons)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.n52.connectors.core.ConnectorCreation
getServiceAdapter, getServiceAdapters
 

Field Detail

registries

protected java.util.ArrayList<ConnectorTypeRegistry> registries
Constructor Detail

AbstractServiceFactory

public AbstractServiceFactory()
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)

getClassInfo

protected org.w3c.dom.Document getClassInfo(java.lang.String respons)
                                     throws org.xml.sax.SAXException,
                                            java.io.IOException,
                                            javax.xml.transform.TransformerException,
                                            javax.xml.parsers.ParserConfigurationException
Throws:
org.xml.sax.SAXException
java.io.IOException
javax.xml.transform.TransformerException
javax.xml.parsers.ParserConfigurationException