|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.apache.tiles.startup.AbstractTilesInitializer
public abstract class AbstractTilesInitializer
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 | |
|---|---|
AbstractTilesInitializer()
|
|
| Method Summary | |
|---|---|
protected TilesContainer |
createContainer(TilesApplicationContext context)
Creates a Tiles container. |
protected abstract 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. |
void |
destroy()
Destroys the Tiles container. |
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 AbstractTilesInitializer()
| Method Detail |
|---|
public void initialize(TilesApplicationContext applicationContext)
initialize in interface TilesInitializerapplicationContext - 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 TilesInitializerprotected TilesApplicationContext createTilesApplicationContext(TilesApplicationContext preliminaryContext)
#createAndInitializeTilesApplicationContextFactory(TilesApplicationContext)
.
preliminaryContext - The preliminary application context to use.
protected String getContainerKey(TilesApplicationContext applicationContext)
null so that the container will
be the default one.
applicationContext - The Tiles application context to use.
protected TilesContainer createContainer(TilesApplicationContext context)
createContainerFactory(TilesApplicationContext).
context - The servlet context to use.
protected abstract 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 | |||||||||