public abstract class AbstractTilesInitializer extends Object implements TilesInitializer
ApplicationContext
and the TilesContainer
.Modifier and Type | Field and Description |
---|---|
static String |
CONTAINER_KEY_INIT_PARAMETER
Init parameter to define the key under which the container will be
stored.
|
Constructor and Description |
---|
AbstractTilesInitializer() |
Modifier and Type | Method and Description |
---|---|
protected TilesContainer |
createContainer(org.apache.tiles.request.ApplicationContext context)
Creates a Tiles container.
|
protected abstract AbstractTilesContainerFactory |
createContainerFactory(org.apache.tiles.request.ApplicationContext context)
Creates a Tiles container factory.
|
protected org.apache.tiles.request.ApplicationContext |
createTilesApplicationContext(org.apache.tiles.request.ApplicationContext preliminaryContext)
Creates the Tiles application context, to be used across all the
Tiles-based application.
|
void |
destroy()
Destroys the Tiles container.
|
protected String |
getContainerKey(org.apache.tiles.request.ApplicationContext applicationContext)
Returns the container key under which the container will be stored.
|
void |
initialize(org.apache.tiles.request.ApplicationContext applicationContext)
Initializes Tiles.
|
public static final String CONTAINER_KEY_INIT_PARAMETER
public void initialize(org.apache.tiles.request.ApplicationContext 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.public void destroy()
destroy
in interface TilesInitializer
protected org.apache.tiles.request.ApplicationContext createTilesApplicationContext(org.apache.tiles.request.ApplicationContext preliminaryContext)
#createAndInitializeTilesApplicationContextFactory(ApplicationContext)
.preliminaryContext
- The preliminary application context to use.protected String getContainerKey(org.apache.tiles.request.ApplicationContext applicationContext)
null
so that the container will
be the default one.applicationContext
- The Tiles application context to use.protected TilesContainer createContainer(org.apache.tiles.request.ApplicationContext context)
createContainerFactory(ApplicationContext)
.context
- The servlet context to use.protected abstract AbstractTilesContainerFactory createContainerFactory(org.apache.tiles.request.ApplicationContext context)
createContainer(ApplicationContext)
.context
- The servlet context to use.Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.