This project has retired. For details please refer to its Attic page.
TilesListener (Tiles 2 2.0.7 API)

org.apache.tiles.web.startup
Class TilesListener

Package class diagram package TilesListener
java.lang.Object
  extended by org.apache.tiles.web.startup.TilesListener
All Implemented Interfaces:
EventListener, ServletContextListener

public class TilesListener
extends Object
implements ServletContextListener

Listener for the initialization of the Tiles container.

Version:
$Rev: 609762 $ $Date: 2008-01-07 20:53:08 +0100 (Mon, 07 Jan 2008) $

Field Summary
protected static Log LOG
          Log instance.
 
Constructor Summary
TilesListener()
           
 
Method Summary
 void contextDestroyed(ServletContextEvent event)
          Remove the tiles container from service.
 void contextInitialized(ServletContextEvent event)
          Initialize the TilesContainer and place it into service.
protected  TilesContainer createContainer(ServletContext context)
          Creates a Tiles container.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static final Log LOG
Log instance.

Constructor Detail

TilesListener

public TilesListener()
Method Detail

contextInitialized

public void contextInitialized(ServletContextEvent event)
Initialize the TilesContainer and place it into service.

Specified by:
contextInitialized in interface ServletContextListener
Parameters:
event - The intercepted event.

contextDestroyed

public void contextDestroyed(ServletContextEvent event)
Remove the tiles container from service.

Specified by:
contextDestroyed in interface ServletContextListener
Parameters:
event - The intercepted event.

createContainer

protected TilesContainer createContainer(ServletContext context)
                                  throws TilesException
Creates a Tiles container.

Parameters:
context - The servlet context to use.
Returns:
The created container
Throws:
TilesException - If something goes wrong during creation.


Copyright © 2001-2008 Apache Software Foundation. All Rights Reserved.