edu.UCL.xmiddle.framework.lib.protocols
Interface ProtocolRegistry

All Known Implementing Classes:
XMLProtocolRegistry

public interface ProtocolRegistry

ProtocolRegistry.java The protocol registry data structure, registers all protocols available to the middleware. It is used by the ProtocolChooser to load up the protocol needed and launch it. Examples of protocols include linking, reconciliation, etc. Created: Fri Jul 20 16:08:02 2001


Method Summary
 java.lang.String getProtocolByName(java.lang.String name)
          Returns the protocol's absolute class name, by its name
 void init()
          Initialises a new registry
 void load(java.lang.String file)
          Loads the registry from disk
 void registerProtocol(java.lang.String className, java.lang.String protocolName)
          Registers a new protocol
 void save(java.lang.String file)
          Saves the registry to disk
 

Method Detail

registerProtocol

public void registerProtocol(java.lang.String className,
                             java.lang.String protocolName)
Registers a new protocol

Parameters:
className - The absolute class name of the protocol
protocolName - The protocol's name (must be unique)

getProtocolByName

public java.lang.String getProtocolByName(java.lang.String name)
Returns the protocol's absolute class name, by its name

Parameters:
name - The protocol's name
Returns:
The protocol's class name

save

public void save(java.lang.String file)
Saves the registry to disk

Parameters:
file - The file on which to save the registry

load

public void load(java.lang.String file)
Loads the registry from disk

Parameters:
file - The file on which the registry is saved

init

public void init()
Initialises a new registry