railo.runtime.listener
Interface ApplicationListener


public interface ApplicationListener

interface for PageContext to interact with CFML


Field Summary
static java.lang.String CFC_EXTENSION
           
static int MODE_CURRENT
           
static int MODE_CURRENT2ROOT
           
static int MODE_ROOT
           
 
Method Summary
 int getMode()
           
 java.lang.String getType()
           
 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)
          this method will be called the application self
 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 setMode(int mode)
           
 void setType(java.lang.String type)
           
 

Field Detail

MODE_CURRENT2ROOT

public static final int MODE_CURRENT2ROOT
See Also:
Constant Field Values

MODE_CURRENT

public static final int MODE_CURRENT
See Also:
Constant Field Values

MODE_ROOT

public static final int MODE_ROOT
See Also:
Constant Field Values

CFC_EXTENSION

public static final java.lang.String CFC_EXTENSION
See Also:
Constant Field Values
Method Detail

setMode

public void setMode(int mode)

getMode

public int getMode()

getType

public java.lang.String getType()
Returns:
the type

setType

public void setType(java.lang.String type)
Parameters:
type - the type to set

onRequest

public void onRequest(PageContext pc,
                      PageSource requestedPage)
               throws PageException,
                      javax.servlet.ServletException
this method will be called the application self

Parameters:
pc -
requestedPage -
Throws:
PageException
javax.servlet.ServletException

onSessionStart

public void onSessionStart(PageContext pc)
                    throws PageException
this method will be called when a new session starts

Throws:
PageException

onSessionEnd

public void onSessionEnd(CFMLFactory cfmlFactory,
                         java.lang.String applicationName,
                         java.lang.String cfid)
                  throws PageException
this method will be called when a session ends

Parameters:
cfmlFactory -
applicationName -
cfid -
Throws:
PageException

onApplicationStart

public boolean onApplicationStart(PageContext pc)
                           throws PageException
this method will be called when a new application context starts

Throws:
PageException

onApplicationEnd

public void onApplicationEnd(CFMLFactory cfmlFactory,
                             java.lang.String applicationName)
                      throws PageException
this method will be called when a application scope ends

Throws:
PageException

onError

public void onError(PageContext pc,
                    PageException pe)
this method will be called if server has a error (exception) not throwed by a try-catch block

Parameters:
pe - PageExcpetion Exception that has been throwed

onDebug

public void onDebug(PageContext pc)
             throws PageException
called after "onRequestEnd" to generate debugging output, will only be called when debugging is enabled

Throws:
PageException