| java.lang.Object net.refractions.udig.catalog.ui.UDIGConnectionFactory
All known Subclasses: net.refractions.udig.catalog.ui.AbstractUDIGConnectionFactory, net.refractions.udig.catalog.memory.NewServiceConnectionFactory, net.refractions.udig.catalog.internal.wfs.ui.WFSConnectionFactory, net.refractions.udig.catalog.internal.postgis.ui.PostGisConnectionFactory, net.refractions.udig.catalog.internal.wms.ui.WMSConnectionFactory, net.refractions.udig.project.internal.ui.wizard.URLConnectionFactory, net.refractions.udig.mapgraphic.internal.ui.MapGraphicConnectionFactory, net.refractions.udig.catalog.ui.FileConnectionFactory, net.refractions.udig.catalog.hsql.NewLayerConnectionFactory,
UDIGConnectionFactory | abstract public class UDIGConnectionFactory (Code) | | Implementations of this class provide connection information based on
context.
The connection information can be in the form of a map of connection
paramters, or a url, or both.
Implementations of this class have two responsibilties. The first is to
create a set of connection paramters based on context. The second is to
create a user interface capable of capturing user connection parameters.
Implementations of this class are provided via the
net.refractions.udig.catalog.ui.connectionFactory extension point.
author: Justin Deoliveira,Refractions Research Inc.,jdeolive@refractions.net |
Method Summary | |
abstract public boolean | canProcess(Object context) Determines if the connection factory is capable of providing some
connection information based on the context object.
Parameters: object - The object to be "processed" or "adapted" into connectioninformation. | public UDIGConnectionPage | createConnectionPage() This method returns the wizard page used to capture connecetion
parameters. | abstract public Map<String, Serializable> | createConnectionParameters(Object context) Get the connection parameters based on the provided context.
Context is often data from a workbench selection, but does not have to
be.
Parameters: object - The object to be "processed" or "adapted" into a map of connection parameters. | abstract public URL | createConnectionURL(Object context) Get a connection url based on the provided context.
Context is often data from a workbench selection, but does not have to
be.
Parameters: object - The object to be "processed" or "adapted" into a url. | public void | setDescriptor(UDIGConnectionFactoryDescriptor descriptor) Sets the descriptor which describies the connection factory. |
XPID | final public static String XPID(Code) | | extension point id *
|
canProcess | abstract public boolean canProcess(Object context)(Code) | | Determines if the connection factory is capable of providing some
connection information based on the context object.
Parameters: object - The object to be "processed" or "adapted" into connectioninformation. True if the info can be returned based on the conext, otherwisefalse. |
createConnectionPage | public UDIGConnectionPage createConnectionPage()(Code) | | This method returns the wizard page used to capture connecetion
parameters. Subclasses may extend, but not overide this method.
A wizard connection page used to capture connection parameters. |
createConnectionParameters | abstract public Map<String, Serializable> createConnectionParameters(Object context)(Code) | | Get the connection parameters based on the provided context.
Context is often data from a workbench selection, but does not have to
be.
Parameters: object - The object to be "processed" or "adapted" into a map of connection parameters. Map of connection parameters, or null if no such parameters couldbe created. |
createConnectionURL | abstract public URL createConnectionURL(Object context)(Code) | | Get a connection url based on the provided context.
Context is often data from a workbench selection, but does not have to
be.
Parameters: object - The object to be "processed" or "adapted" into a url. An url, or null if no such url can be created. |
|
|