|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.essex.common.keymapper.KeyMapServiceImpl
public class KeyMapServiceImpl
TODO: This class needs finishing
Date: 15-Jul-2002
| Field Summary | |
|---|---|
protected static KeyMapServiceImpl |
ourInstance
The singleton instance |
| Fields inherited from interface uk.ac.essex.common.keymapper.KeyMapService |
|---|
DEFAULT_KEY_MAP_NAME |
| Constructor Summary | |
|---|---|
protected |
KeyMapServiceImpl()
|
| Method Summary | |
|---|---|
void |
add(java.io.File xmlFile)
Load the keymap from the file given |
void |
add(java.io.Reader reader)
Load the keymap from the stream given |
void |
addAll(java.io.File directoryToLoadFrom)
Loads all xml files from the given directory |
void |
destroy()
Destroy the service |
static KeyMapService |
getInstance()
|
KeyMap |
getKeyMap(java.lang.String keyMapId)
Get the keymap with the given id |
java.lang.String[] |
getKeyMapNames()
Get an array of the key map names that are available |
KeyMapXML |
getKeyMapXML(java.lang.String name)
|
void |
initialise()
Initialise the service |
static void |
main(java.lang.String[] argStrings)
For testing |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static KeyMapServiceImpl ourInstance
| Constructor Detail |
|---|
protected KeyMapServiceImpl()
| Method Detail |
|---|
public static KeyMapService getInstance()
public void initialise()
throws InitialisationException
initialise in interface ServiceInitialisationException
public void destroy()
throws DestructionException,
ShutdownCancelledException
destroy in interface ServiceDestructionException
ShutdownCancelledExceptionpublic void addAll(java.io.File directoryToLoadFrom)
addAll in interface KeyMapServicedirectoryToLoadFrom - public void add(java.io.File xmlFile)
KeyMapService
add in interface KeyMapServicepublic void add(java.io.Reader reader)
KeyMapService
add in interface KeyMapServicereader - - The streampublic KeyMapXML getKeyMapXML(java.lang.String name)
name -
public KeyMap getKeyMap(java.lang.String keyMapId)
getKeyMap in interface KeyMapServicekeyMapId -
public java.lang.String[] getKeyMapNames()
getKeyMapNames in interface KeyMapServicepublic static void main(java.lang.String[] argStrings)
argStrings -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||