public class CachingTilesContainer extends TilesContainerWrapper implements MutableTilesContainer
DefinitionsFactory
.container
Constructor and Description |
---|
CachingTilesContainer(TilesContainer originalContainer)
Constructor.
|
CachingTilesContainer(TilesContainer originalContainer,
String definitionsAttributeName)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Definition |
getDefinition(String definition,
org.apache.tiles.request.Request request)
Returns a definition by name.
|
boolean |
isValidDefinition(String definition,
org.apache.tiles.request.Request request)
Determine whether or not the definition exists.
|
void |
register(Definition definition,
org.apache.tiles.request.Request request)
Register a new definition with the container.
|
void |
render(String definition,
org.apache.tiles.request.Request request)
Render the given tiles request.
|
endContext, evaluate, getApplicationContext, getAttributeContext, getWrappedContainer, prepare, render, render, renderContext, startContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
endContext, evaluate, getApplicationContext, getAttributeContext, prepare, render, render, renderContext, startContext
public CachingTilesContainer(TilesContainer originalContainer)
originalContainer
- The original container to wrap.public CachingTilesContainer(TilesContainer originalContainer, String definitionsAttributeName)
originalContainer
- The original container to wrap.definitionsAttributeName
- The name of the attribute in which
storing custom definitions.public Definition getDefinition(String definition, org.apache.tiles.request.Request request)
getDefinition
in interface TilesContainer
getDefinition
in class TilesContainerWrapper
definition
- The name of the definition.request
- The current request.DefinitionsFactoryException
- If
something goes wrong when obtaining a main definition.public boolean isValidDefinition(String definition, org.apache.tiles.request.Request request)
isValidDefinition
in interface TilesContainer
isValidDefinition
in class TilesContainerWrapper
definition
- the name of the definition.request
- The request.public void register(Definition definition, org.apache.tiles.request.Request request)
register
in interface MutableTilesContainer
definition
- The definition to register.request
- TODOpublic void render(String definition, org.apache.tiles.request.Request request)
render
in interface TilesContainer
render
in class TilesContainerWrapper
definition
- the current definition.request
- The request.Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.