railo.runtime.listener
Class AppListenerSupport

java.lang.Object
  extended by railo.runtime.listener.AppListenerSupport
All Implemented Interfaces:
ApplicationListener
Direct Known Subclasses:
ClassicAppListener, ModernAppListener, NoneAppListener

public abstract class AppListenerSupport
extends Object
implements ApplicationListener


Field Summary
 
Fields inherited from interface railo.runtime.listener.ApplicationListener
CFC_EXTENSION, MODE_CURRENT, MODE_CURRENT2ROOT, MODE_ROOT
 
Constructor Summary
AppListenerSupport()
           
 
Method Summary
 boolean hasOnApplicationStart()
           
 boolean hasOnSessionStart(PageContext pc)
           
 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 onTimeout(PageContext pc)
          will be called when server is run int a timeout
 void setType(String type)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface railo.runtime.listener.ApplicationListener
getMode, getType, onApplicationEnd, onApplicationStart, onDebug, onError, onRequest, onSessionEnd, onSessionStart, setMode
 

Constructor Detail

AppListenerSupport

public AppListenerSupport()
Method Detail

hasOnApplicationStart

public boolean hasOnApplicationStart()
Specified by:
hasOnApplicationStart in interface ApplicationListener

hasOnSessionStart

public boolean hasOnSessionStart(PageContext pc)
Specified by:
hasOnSessionStart in interface ApplicationListener

onServerStart

public void onServerStart()
                   throws PageException
Description copied from interface: ApplicationListener
this method will be called when a server starts

Specified by:
onServerStart in interface ApplicationListener
Throws:
PageException

onServerEnd

public void onServerEnd()
                 throws PageException
Description copied from interface: ApplicationListener
this method will be called when the server shutdown correctly (no crashes)

Specified by:
onServerEnd in interface ApplicationListener
Throws:
PageException

onTimeout

public void onTimeout(PageContext pc)
Description copied from interface: ApplicationListener
will be called when server is run int a timeout

Specified by:
onTimeout in interface ApplicationListener

setType

public final void setType(String type)
Specified by:
setType in interface ApplicationListener
Parameters:
type - the type to set


Copyright © 2012 Railo