|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.refractions.udig.catalog.ui.UDIGConnectionFactory
public abstract class UDIGConnectionFactory
Implementations of this class provide connection information based on context.
The connection information can be in the form of a map of connection Parameters, or a url, or both.
Implementations of this class have two responsibilities. The first is to create a set of connection parameters 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.
Field Summary | |
---|---|
protected UDIGConnectionFactoryDescriptor |
descriptor
|
static java.lang.String |
XPID
extension point id |
Constructor Summary | |
---|---|
UDIGConnectionFactory()
|
Method Summary | |
---|---|
abstract boolean |
canProcess(java.lang.Object context)
Determines if the connection factory is capable of providing some connection information based on the context object. |
UDIGConnectionPage |
createConnectionPage(int pageIndex)
This method returns the wizard page used to capture connection parameters. |
abstract java.util.Map<java.lang.String,java.io.Serializable> |
createConnectionParameters(java.lang.Object context)
Get the connection parameters based on the provided context. |
abstract java.net.URL |
createConnectionURL(java.lang.Object context)
Get a connection url based on the provided context. |
void |
setDescriptor(UDIGConnectionFactoryDescriptor descriptor)
Sets the descriptor which describes the connection factory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String XPID
protected UDIGConnectionFactoryDescriptor descriptor
Constructor Detail |
---|
public UDIGConnectionFactory()
Method Detail |
---|
public abstract boolean canProcess(java.lang.Object context)
object
- The object to be "processed" or "adapted" into connection
information.
public abstract java.util.Map<java.lang.String,java.io.Serializable> createConnectionParameters(java.lang.Object context)
Context is often data from a workbench selection, but does not have to be.
object
- The object to be "processed" or "adapted" into a map of
connection parameters.
public abstract java.net.URL createConnectionURL(java.lang.Object context)
Context is often data from a workbench selection, but does not have to be.
object
- The object to be "processed" or "adapted" into a url.
public void setDescriptor(UDIGConnectionFactoryDescriptor descriptor)
public UDIGConnectionPage createConnectionPage(int pageIndex)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |