org.apache.pluto.driver
Class PortalStartupListener

java.lang.Object
  extended by org.apache.pluto.driver.PortalStartupListener
All Implemented Interfaces:
java.util.EventListener, javax.servlet.ServletContextListener

public class PortalStartupListener
extends java.lang.Object
implements javax.servlet.ServletContextListener

Listener used to start up / shut down the Pluto Portal Driver upon startup / showdown of the servlet context in which it resides.

Startup Includes:

  1. Instantiation of the DriverConfiguration
  2. Registration of the DriverConfiguration
  3. Instantiation of the PortalContext
  4. Registration of the PortalContext
  5. Instantiation of the ContainerServices
  6. Registration of the ContainerServices

Since:
Sep 22, 2004
Version:
$Revision$ $Date$

Constructor Summary
PortalStartupListener()
           
 
Method Summary
 void contextDestroyed(javax.servlet.ServletContextEvent event)
          Recieve notification that the context is being shut down and subsequently destroy the container.
 void contextInitialized(javax.servlet.ServletContextEvent event)
          Receives the startup notification and subsequently starts up the portal driver.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortalStartupListener

public PortalStartupListener()
Method Detail

contextInitialized

public void contextInitialized(javax.servlet.ServletContextEvent event)
Receives the startup notification and subsequently starts up the portal driver. The following are done in this order:
  1. Retrieve the ResourceConfig File
  2. Parse the ResourceConfig File into ResourceConfig Objects
  3. Create a Portal Context
  4. Create the ContainerServices implementation
  5. Create the Portlet Container
  6. Initialize the Container
  7. Bind the configuration to the ServletContext
  8. Bind the container to the ServletContext
    1. Specified by:
      contextInitialized in interface javax.servlet.ServletContextListener
      Parameters:
      event - the servlet context event.

contextDestroyed

public void contextDestroyed(javax.servlet.ServletContextEvent event)
Recieve notification that the context is being shut down and subsequently destroy the container.

Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener
Parameters:
event - the destrubtion event.


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.