|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.tm.plugin.ServerStore
Implementation of a persistence store for server objects. All modifications off the store are saved immediately.
The store is saved as a XMLMemento und the filename server.xml in the plugin directory.
Method Summary | |
void |
add(TomcatServer server)
Adds a new server to the store. |
boolean |
contains(TomcatServer server)
|
TomcatServer |
get(int index)
|
static ServerStore |
getInstance()
|
int |
getSize()
|
Iterator |
iterator()
|
void |
remove(TomcatServer server)
Removes a server from the store. |
void |
set(TomcatServer server)
Sets the given seren. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public int getSize()
public void add(TomcatServer server)
server
- New serverpublic void remove(TomcatServer server)
server
- Server which shall be deleted.public boolean contains(TomcatServer server)
server
- Server to look for
public TomcatServer get(int index)
index
- Index of the server
public Iterator iterator()
public void set(TomcatServer server)
server
- Server to be updatedpublic static ServerStore getInstance()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |