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

org.apache.tiles.startup
Class BasicTilesInitializer

Package class diagram package BasicTilesInitializer
java.lang.Object
  extended by org.apache.tiles.startup.BasicTilesInitializer
All Implemented Interfaces:
TilesInitializer

public class BasicTilesInitializer
extends Object
implements TilesInitializer

Default Tiles initialization delegate implementation under a servlet environment. It uses init parameters to create the TilesApplicationContext and the TilesContainer.

Since:
2.1.2
Version:
$Rev: 531864 $ $Date: 2007-04-24 12:24:30 +0200 (mar, 24 apr 2007) $

Field Summary
static String CONTAINER_KEY_INIT_PARAMETER
          Init parameter to define the key under which the container will be stored.
 
Constructor Summary
BasicTilesInitializer()
           
 
Method Summary
protected  AbstractTilesApplicationContextFactory createAndInitializeTilesApplicationContextFactory(TilesApplicationContext preliminaryContext)
          Creates and initializes the Tiles application context factory, to create a TilesApplicationContext to be used across all the Tiles-based application.
protected  TilesContainer createContainer(TilesApplicationContext context)
          Creates a Tiles container.
protected  AbstractTilesContainerFactory createContainerFactory(TilesApplicationContext context)
          Creates a Tiles container factory.
protected  TilesApplicationContext createTilesApplicationContext(TilesApplicationContext preliminaryContext)
          Creates the Tiles application context, to be used across all the Tiles-based application.
protected  String getContainerKey(TilesApplicationContext applicationContext)
          Returns the container key under which the container will be stored.
 void initialize(TilesApplicationContext applicationContext)
          Initializes Tiles.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTAINER_KEY_INIT_PARAMETER

public static final String CONTAINER_KEY_INIT_PARAMETER
Init parameter to define the key under which the container will be stored.

Since:
2.1.2
See Also:
Constant Field Values
Constructor Detail

BasicTilesInitializer

public BasicTilesInitializer()
Method Detail

initialize

public void initialize(TilesApplicationContext applicationContext)
Initializes Tiles.

Specified by:
initialize in interface TilesInitializer
Parameters:
applicationContext - The preliminary application context to use. It will be overwritten with the real instance later. Use a context usable under your current environment, like ServletTilesApplicationContext or PortletTilesApplicationContext.

createTilesApplicationContext

protected TilesApplicationContext createTilesApplicationContext(TilesApplicationContext preliminaryContext)
Creates the Tiles application context, to be used across all the Tiles-based application. If you override this class, please override this method or createAndInitializeTilesApplicationContextFactory(TilesApplicationContext).

Parameters:
preliminaryContext - The preliminary application context to use.
Returns:
The Tiles application context.
Since:
2.1.2

createAndInitializeTilesApplicationContextFactory

protected AbstractTilesApplicationContextFactory createAndInitializeTilesApplicationContextFactory(TilesApplicationContext preliminaryContext)
Creates and initializes the Tiles application context factory, to create a TilesApplicationContext to be used across all the Tiles-based application. If you override this class, please override this method or createTilesApplicationContext(TilesApplicationContext).

Parameters:
preliminaryContext - The preliminary application context to use.
Returns:
The Tiles application context factory.
Since:
2.1.2

getContainerKey

protected String getContainerKey(TilesApplicationContext applicationContext)
Returns the container key under which the container will be stored.

Parameters:
applicationContext - The Tiles application context to use.
Returns:
The container key.
Since:
2.1.2

createContainer

protected TilesContainer createContainer(TilesApplicationContext context)
Creates a Tiles container. If you override this class, please override this method or createContainerFactory(TilesApplicationContext).

Parameters:
context - The servlet context to use.
Returns:
The created container.
Since:
2.1.2

createContainerFactory

protected AbstractTilesContainerFactory createContainerFactory(TilesApplicationContext context)
Creates a Tiles container factory. If you override this class, please override this method or createContainer(TilesApplicationContext).

Parameters:
context - The servlet context to use.
Returns:
The created container factory.
Since:
2.1.2


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