public interface ApplicationListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFC_EXTENSION |
static int |
MODE_CURRENT |
static int |
MODE_CURRENT_OR_ROOT |
static int |
MODE_CURRENT2ROOT |
static int |
MODE_ROOT |
Modifier and Type | Method and Description |
---|---|
int |
getMode() |
java.lang.String |
getType() |
boolean |
hasOnApplicationStart() |
boolean |
hasOnSessionStart(PageContext pc) |
void |
onApplicationEnd(CFMLFactory cfmlFactory,
java.lang.String applicationName)
this method will be called when a application scope ends
|
boolean |
onApplicationStart(PageContext pc)
this method will be called when a new application context starts
|
void |
onDebug(PageContext pc)
called after "onRequestEnd" to generate debugging output, will only be called when debugging is enabled
|
void |
onError(PageContext pc,
PageException pe)
this method will be called if server has a error (exception) not throwed by a try-catch block
|
void |
onRequest(PageContext pc,
PageSource requestedPage,
RequestListener rl)
this method will be called the application self
|
void |
onServerEnd()
this method will be called when the server shutdown correctly (no crashes)
|
void |
onServerStart()
this method will be called when a server starts
|
void |
onSessionEnd(CFMLFactory cfmlFactory,
java.lang.String applicationName,
java.lang.String cfid)
this method will be called when a session ends
|
void |
onSessionStart(PageContext pc)
this method will be called when a new session starts
|
void |
onTimeout(PageContext pc)
will be called when server is run int a timeout
|
void |
setMode(int mode) |
void |
setType(java.lang.String type) |
static final int MODE_CURRENT2ROOT
static final int MODE_CURRENT
static final int MODE_ROOT
static final int MODE_CURRENT_OR_ROOT
static final java.lang.String CFC_EXTENSION
void setMode(int mode)
int getMode()
java.lang.String getType()
void setType(java.lang.String type)
type
- the type to setvoid onRequest(PageContext pc, PageSource requestedPage, RequestListener rl) throws PageException
pc
- requestedPage
- PageException
javax.servlet.ServletException
void onSessionStart(PageContext pc) throws PageException
PageException
void onSessionEnd(CFMLFactory cfmlFactory, java.lang.String applicationName, java.lang.String cfid) throws PageException
cfmlFactory
- applicationName
- cfid
- PageException
boolean onApplicationStart(PageContext pc) throws PageException
PageException
void onApplicationEnd(CFMLFactory cfmlFactory, java.lang.String applicationName) throws PageException
PageException
void onServerStart() throws PageException
PageException
void onServerEnd() throws PageException
PageException
void onError(PageContext pc, PageException pe)
pe
- PageExcpetion Exception that has been throwedvoid onDebug(PageContext pc) throws PageException
PageException
void onTimeout(PageContext pc)
boolean hasOnApplicationStart()
boolean hasOnSessionStart(PageContext pc)