org.apache.tiles.jsp.context
Class JspTilesContextFactory
java.lang.Object
org.apache.tiles.jsp.context.JspTilesContextFactory
- All Implemented Interfaces:
- org.apache.tiles.context.TilesContextFactory
public class JspTilesContextFactory
- extends java.lang.Object
- implements org.apache.tiles.context.TilesContextFactory
Creates an instance of the appropriate TilesApplicationContext implementation.
Method Summary |
org.apache.tiles.TilesApplicationContext |
createApplicationContext(java.lang.Object context)
|
org.apache.tiles.context.TilesRequestContext |
createRequestContext(org.apache.tiles.TilesApplicationContext context,
java.lang.Object... requestItems)
|
protected javax.servlet.ServletContext |
getServletContext(org.apache.tiles.TilesApplicationContext context)
Returns the original servlet context. |
void |
init(java.util.Map<java.lang.String,java.lang.String> configParameters)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JspTilesContextFactory
public JspTilesContextFactory()
init
public void init(java.util.Map<java.lang.String,java.lang.String> configParameters)
-
- Specified by:
init
in interface org.apache.tiles.context.TilesContextFactory
createApplicationContext
public org.apache.tiles.TilesApplicationContext createApplicationContext(java.lang.Object context)
-
- Specified by:
createApplicationContext
in interface org.apache.tiles.context.TilesContextFactory
createRequestContext
public org.apache.tiles.context.TilesRequestContext createRequestContext(org.apache.tiles.TilesApplicationContext context,
java.lang.Object... requestItems)
-
- Specified by:
createRequestContext
in interface org.apache.tiles.context.TilesContextFactory
getServletContext
protected javax.servlet.ServletContext getServletContext(org.apache.tiles.TilesApplicationContext context)
- Returns the original servlet context.
- Parameters:
context
- The application context.
- Returns:
- The original servlet context, if found.