org.norther.tammi.spray.servlet
Class DefaultStartupContext

java.lang.Object
  extended by org.norther.tammi.core.base.Adaptee
      extended by org.norther.tammi.spray.servlet.DefaultStartupContext
All Implemented Interfaces:
Serializable, EventListener, NotificationBroadcaster, NotificationEmitter, ServletContextListener, Manageable, MBeanDelegate, StartupContext

public class DefaultStartupContext
extends Adaptee
implements StartupContext, ServletContextListener, Serializable

The startup context listener implementation.

Author:
Ilkka Priha
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.norther.tammi.core.base.Adaptee
ADAPTEE_NOTIF_DESCRIPTION, ADAPTEE_NOTIFICATIONS
 
Fields inherited from interface org.norther.tammi.spray.servlet.StartupContext
BINARY_PROPERTY, CONFIG_PROPERTY, CONTEXT_PROPERTY_PREFIX, DATA_PROPERTY, DEFAULT_ROOT, DOMAIN_PROPERTY, LOCAL_ID, LOGS_PROPERTY, OBJECT_NAME_PROPERTY, PLUGINS_PROPERTY, ROOT_PROPERTY, SERVER_ID_PROPERTY, SERVER_PROPERTY, START_PROPERTY, TEMP_PROPERTY
 
Fields inherited from interface org.norther.tammi.core.base.MBeanDelegate
ARRAY_TYPE, OBJECT_TYPE, PRIMITIVE_TYPE, STRING_TYPE
 
Constructor Summary
DefaultStartupContext()
          Constructs a new listener.
 
Method Summary
 void contextDestroyed(ServletContextEvent sce)
           
 void contextInitialized(ServletContextEvent sce)
           
 ServletContext getServletContext()
          Gets the servlet context.
 String getServletContextName()
          Gets the name of this servlet context.
 File getServletContextRoot()
          Gets the root of this servlet context.
 
Methods inherited from class org.norther.tammi.core.base.Adaptee
addAdaptee, addNotificationListener, getAttributeSupport, getBroker, getCanonicalName, getDomain, getFactory, getLoader, getLog, getLog, getMBean, getMBeanServer, getNotificationInfo, getObjectName, getRegistrationTime, getSequenceNumber, hasListeners, isRegistered, postmanaged, premanaged, removeNotificationListener, removeNotificationListener, sendNotification, sendNotification, sendNotification, sendNotification, unmanaged, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultStartupContext

public DefaultStartupContext()
Constructs a new listener.

Method Detail

getServletContextName

public String getServletContextName()
Description copied from interface: StartupContext
Gets the name of this servlet context.

Specified by:
getServletContextName in interface StartupContext
Returns:
the context name.

getServletContextRoot

public File getServletContextRoot()
Description copied from interface: StartupContext
Gets the root of this servlet context.

Specified by:
getServletContextRoot in interface StartupContext
Returns:
the root file.

getServletContext

public ServletContext getServletContext()
Description copied from interface: StartupContext
Gets the servlet context.

Specified by:
getServletContext in interface StartupContext
Returns:
the servlet context.

contextInitialized

public void contextInitialized(ServletContextEvent sce)
Specified by:
contextInitialized in interface ServletContextListener

contextDestroyed

public void contextDestroyed(ServletContextEvent sce)
Specified by:
contextDestroyed in interface ServletContextListener


Copyright © 2004 The Norther Organization. All rights reserved.