org.apache.pluto.driver
Class PortalStartupListener
java.lang.Object
org.apache.pluto.driver.PortalStartupListener
- All Implemented Interfaces:
- EventListener, javax.servlet.ServletContextListener
public class PortalStartupListener
- extends 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:
- Instantiation of the DriverConfiguration
- Registration of the DriverConfiguration
- Instantiation of the PortalContext
- Registration of the PortalContext
- Instantiation of the ContainerServices
- Registration of the ContainerServices
- Since:
- Sep 22, 2004
- Version:
- $Revision$ $Date$
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 |
PortalStartupListener
public PortalStartupListener()
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:
- Retrieve the ResourceConfig File
- Parse the ResourceConfig File into ResourceConfig Objects
- Create a Portal Context
- Create the ContainerServices implementation
- Create the Portlet Container
- Initialize the Container
- Bind the configuration to the ServletContext
- Bind the container to the ServletContext
- 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-2011 Apache Software Foundation. All Rights Reserved.