net.refractions.udig.catalog.memory
Class NewServiceConnectionFactory
java.lang.Object
net.refractions.udig.catalog.ui.UDIGConnectionFactory
net.refractions.udig.catalog.memory.NewServiceConnectionFactory
public class NewServiceConnectionFactory
- extends UDIGConnectionFactory
A ConnectionFactory for creating a new layer. The data will reside on disk.
- Author:
- jones
Method Summary |
boolean |
canProcess(java.lang.Object context)
Determines if the connection factory is capable of providing some
connection information based on the context object. |
java.util.Map<java.lang.String,java.io.Serializable> |
createConnectionParameters(java.lang.Object context)
Get the connection parameters based on the provided context. |
java.net.URL |
createConnectionURL(java.lang.Object context)
Get a connection url based on the provided context. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NewServiceConnectionFactory
public NewServiceConnectionFactory()
canProcess
public boolean canProcess(java.lang.Object context)
- Description copied from class:
UDIGConnectionFactory
- Determines if the connection factory is capable of providing some
connection information based on the context object.
- Specified by:
canProcess
in class UDIGConnectionFactory
- Returns:
- True if the info can be returned based on the context, otherwise
false.
createConnectionParameters
public java.util.Map<java.lang.String,java.io.Serializable> createConnectionParameters(java.lang.Object context)
- Description copied from class:
UDIGConnectionFactory
- Get the connection parameters based on the provided context.
Context is often data from a workbench selection, but does not have to
be.
- Specified by:
createConnectionParameters
in class UDIGConnectionFactory
- Returns:
- Map of connection parameters, or null if no such parameters could
be created.
createConnectionURL
public java.net.URL createConnectionURL(java.lang.Object context)
- Description copied from class:
UDIGConnectionFactory
- Get a connection url based on the provided context.
Context is often data from a workbench selection, but does not have to
be.
- Specified by:
createConnectionURL
in class UDIGConnectionFactory
- Returns:
- An url, or null if no such url can be created.