|
WUI : API |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.westofj.wui.WApplication
Captures global application information. A single application instance is created when
the controller servlet is initialized. Each WRunner
instance has access to the
same application instance.
WApplication may be extended to add additional global resources and methods.
Constructor Summary | |
WApplication()
Constructs an application. |
Method Summary | |
void |
destroy()
Invoked when the application is destroyed by the controlling servlet. |
void |
destroyRunner(WRunner runner)
Invoked when a new WRunner is destroyed by the controlling servlet. |
String |
getInitParameter(String name)
Returns the value of the specified initialization parameter from the servlets configuration. |
String |
getRealPath(String path)
Returns a String containing the real path for a given virtual path. |
ServletContext |
getServletContext()
Returns the servlet context of the WUI application. |
String |
getServletName()
Returns the name of the controlling servlet. |
void |
init()
Invoked when the application is first created by the controlling servlet. |
void |
initRunner(WRunner runner)
Invoked when a new WRunner is created by the controlling servlet. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WApplication()
Method Detail |
public final String getInitParameter(String name)
name
- the name of the initialization parameter.
public final String getServletName()
public final String getRealPath(String path)
String
specifying the real path, or null if the
translation cannot be performedpublic final ServletContext getServletContext()
public void init()
public void destroy()
public void initRunner(WRunner runner)
WRunner
is created by the controlling servlet.
runner
- the runner being created.public void destroyRunner(WRunner runner)
WRunner
is destroyed by the controlling servlet.
runner
- the runner being destroyed.
|
Copyright (c) 2003 West of J - All rights reserved. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |