|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.UCL.xmiddle.lib.protocols.XMLProtocolRegistry
XMLProtocolRegistry.java Registers the protocols which are available to the platform. It uses a hashtable internaly to store the data. Loading and saving (not implemented yet) will be done using XML. Created: Fri Jul 27 12:29:50 2001
Constructor Summary | |
XMLProtocolRegistry()
|
Method Summary | |
java.lang.String |
getProtocolByName(java.lang.String name)
Returns the protocol's absolute class name |
void |
init()
initialises a new ProtocolRegistry from scratch |
void |
load(java.lang.String file)
loads a registry stored to disk [FIXME: not implemented] |
void |
registerProtocol(java.lang.String className,
java.lang.String protocolName)
Registers a new protocol as available to the platform. |
void |
save(java.lang.String file)
saves the registry to disk in xml format [FIXME: not implemented] |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XMLProtocolRegistry()
Method Detail |
public void init()
init
in interface ProtocolRegistry
public void load(java.lang.String file)
load
in interface ProtocolRegistry
file
- the file where the registry is storedpublic void save(java.lang.String file)
save
in interface ProtocolRegistry
file
- the file where the registry is to be storedpublic java.lang.String getProtocolByName(java.lang.String name)
getProtocolByName
in interface ProtocolRegistry
name
- The protocol's name
public void registerProtocol(java.lang.String className, java.lang.String protocolName)
registerProtocol
in interface ProtocolRegistry
className
- The absolute classname of the protocol where it can be located.protocolName
- The protocol's name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |