|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.struts.apps.scriptingmailreader.plugin.MemoryDatabasePlugIn
public final class MemoryDatabasePlugIn
MemoryDatabasePlugIn initializes and finalizes the persistent storage of User and Subscription information for the Struts Demonstration Application, using an in-memory database backed by an XML file.
IMPLEMENTATION WARNING - If this web application is run from a WAR file, or in another environment where reading and writing of the web application resource is impossible, the initial contents will be copied to a file in the web application temporary directory provided by the container. This is for demonstration purposes only - you should NOT assume that files written here will survive a restart of your servlet container.
Constructor Summary | |
---|---|
MemoryDatabasePlugIn()
|
Method Summary | |
---|---|
void |
destroy()
Gracefully shut down this database, releasing any resources that were allocated at initialization. |
String |
getPathname()
|
void |
init(ActionServlet servlet,
ModuleConfig config)
Initialize and load our initial database from persistent storage. |
void |
setPathname(String pathname)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MemoryDatabasePlugIn()
Method Detail |
---|
public String getPathname()
public void setPathname(String pathname)
public void destroy()
destroy
in interface PlugIn
public void init(ActionServlet servlet, ModuleConfig config) throws ServletException
init
in interface PlugIn
servlet
- The ActionServlet for this web applicationconfig
- The ApplicationConfig for our owning module
ServletException
- if we cannot configure ourselves correctly
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |