nu.zoom.ldap.eon.connection
Interface ConnectionFactory

All Known Implementing Classes:
AbstractConnectionFactory, PasswordConnectionFactory

public interface ConnectionFactory

Version:
$Revision: 1.2 $
Author:
$Author: johan $

Method Summary
 void addConnectionFactoryListener(ConnectionFactoryListener listener)
          Add a listener for changes in the connection collection.
 String getDescription()
          Get a description of the type of connections this factory handles.
 ConnectionEditor getEditor()
          The factory should provide an editor for the type of connections the factory handles.
 ImageIcon getIcon()
          The factory can provide an icon to represent the connection type it handles.
 String getName()
          The connection factory should provide a short name for the type of connections the factory handles.
 Connection[] listConnections()
          Get all connections this factory handles.
 void removeConnection(Connection connection)
          Delete a connection.
 void removeConnectionFactoryListener(ConnectionFactoryListener listener)
          Remove a previously registered listener.
 

Method Detail

addConnectionFactoryListener

void addConnectionFactoryListener(ConnectionFactoryListener listener)
Add a listener for changes in the connection collection. Implementation classes should notify listeners when connections changes.

Parameters:
listener - The listener.

removeConnectionFactoryListener

void removeConnectionFactoryListener(ConnectionFactoryListener listener)
Remove a previously registered listener.

Parameters:
listener - The listener to remove.

listConnections

Connection[] listConnections()
                             throws BackendException
Get all connections this factory handles.

Returns:
An array of collections.
Throws:
BackendException

removeConnection

void removeConnection(Connection connection)
                      throws BackendException
Delete a connection.

Parameters:
connection - The connection to delete.
Throws:
BackendException

getDescription

String getDescription()
Get a description of the type of connections this factory handles. THe description should be suitable for use as a tooltip.

Returns:
A descrioption of the connections this factory provides.

getName

String getName()
The connection factory should provide a short name for the type of connections the factory handles. This should be suitable for use as an item on a menu.

Returns:
The name for the connection factory.

getIcon

ImageIcon getIcon()
The factory can provide an icon to represent the connection type it handles.

Returns:
The icon to use. Null if hte factory does not have an icon.

getEditor

ConnectionEditor getEditor()
The factory should provide an editor for the type of connections the factory handles.

Returns:
An editor.


Copyright © 2011. All Rights Reserved.