org.n52.connectors.core
Class ConnectorFactory
java.lang.Object
org.n52.connectors.core.AbstractFactory
org.n52.connectors.core.ConnectorFactory
- All Implemented Interfaces:
- ConnectorCreation
public class ConnectorFactory
- extends AbstractFactory
Implements the abstract factory. The factory is the main interface for
non-applet applications to access functionality provided by the connector
system AbstractFactory
. A user of a factory formulates a request and
will get back a connector which supports the request.
- Author:
- martin schouwenburg
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectorFactory
public ConnectorFactory()
getNodeValue
public static java.lang.String getNodeValue(org.w3c.dom.Node n,
java.lang.String tag)
throws javax.xml.transform.TransformerException
- Throws:
javax.xml.transform.TransformerException
getServiceAdapter
public java.lang.Object getServiceAdapter(ConnectorRequest request)
throws N52Exception
- Description copied from interface:
ConnectorCreation
- return one object which supports an interface with requested
functionality. If more than one is found the first one will be returned.
To be usable a object must be cast to the functionality interface it
supports.
- Parameters:
request
- contains all information that is needed to find a suitable
connector
- Returns:
- a object that supports the request
- Throws:
IllegalConnectorRequest
- request could not be fullfilled
N52Exception
- low level errors that are passed to higher level error
handling
getServiceAdapters
public java.lang.Object[] getServiceAdapters(ConnectorRequest request)
- Description copied from interface:
ConnectorCreation
- returns one or more objects which supports an interface with requested
functionality
- Parameters:
request
- contains all information that is needed to find a suitable
connector
- Returns:
- a set of objects that all supports the request