|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tiles.startup.BasicTilesInitializer
public class BasicTilesInitializer
Default Tiles initialization delegate implementation under a servlet
environment. It uses init parameters to create the
TilesApplicationContext
and the TilesContainer
.
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 |
---|
public static final String CONTAINER_KEY_INIT_PARAMETER
Constructor Detail |
---|
public BasicTilesInitializer()
Method Detail |
---|
public void initialize(TilesApplicationContext applicationContext)
initialize
in interface TilesInitializer
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.protected TilesApplicationContext createTilesApplicationContext(TilesApplicationContext preliminaryContext)
createAndInitializeTilesApplicationContextFactory(TilesApplicationContext)
.
preliminaryContext
- The preliminary application context to use.
protected AbstractTilesApplicationContextFactory createAndInitializeTilesApplicationContextFactory(TilesApplicationContext preliminaryContext)
TilesApplicationContext
to be used across all the Tiles-based
application. If you override this class, please override this method or
createTilesApplicationContext(TilesApplicationContext)
.
preliminaryContext
- The preliminary application context to use.
protected String getContainerKey(TilesApplicationContext applicationContext)
applicationContext
- The Tiles application context to use.
protected TilesContainer createContainer(TilesApplicationContext context)
createContainerFactory(TilesApplicationContext)
.
context
- The servlet context to use.
protected AbstractTilesContainerFactory createContainerFactory(TilesApplicationContext context)
createContainer(TilesApplicationContext)
.
context
- The servlet context to use.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |