org.apache.tiles.context.servlet
Class ServletTilesApplicationContext

Package class diagram package ServletTilesApplicationContext
java.lang.Object
  extended by org.apache.tiles.context.servlet.ServletTilesApplicationContext
All Implemented Interfaces:
org.apache.tiles.TilesApplicationContext
Direct Known Subclasses:
ServletTilesRequestContext

public class ServletTilesApplicationContext
extends java.lang.Object
implements org.apache.tiles.TilesApplicationContext

Servlet-bsed implementation of the TilesApplicationContext interface.


Constructor Summary
ServletTilesApplicationContext(javax.servlet.ServletContext servletContext)
          Creates a new instance of ServletTilesApplicationContext
 
Method Summary
 TilesRequestContext createRequestContext(java.lang.Object request, java.lang.Object response)
           
 java.util.Map getApplicationScope()
           
 java.util.Map getInitParams()
           
 java.net.URL getResource(java.lang.String path)
           
 java.util.Set<java.net.URL> getResources(java.lang.String path)
           
 javax.servlet.ServletContext getServletContext()
           
 void initialize(javax.servlet.ServletContext context)
          Initialize (or reinitialize) this TilesApplicationContext instance for the specified Servlet API objects.
 void release()
          Release references to allocated resources acquired in initialize() of via subsequent processing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletTilesApplicationContext

public ServletTilesApplicationContext(javax.servlet.ServletContext servletContext)
Creates a new instance of ServletTilesApplicationContext

Method Detail

getApplicationScope

public java.util.Map getApplicationScope()
Specified by:
getApplicationScope in interface org.apache.tiles.TilesApplicationContext

getInitParams

public java.util.Map getInitParams()
Specified by:
getInitParams in interface org.apache.tiles.TilesApplicationContext

getResource

public java.net.URL getResource(java.lang.String path)
                         throws java.net.MalformedURLException
Specified by:
getResource in interface org.apache.tiles.TilesApplicationContext
Throws:
java.net.MalformedURLException

getResources

public java.util.Set<java.net.URL> getResources(java.lang.String path)
                                         throws java.net.MalformedURLException
Specified by:
getResources in interface org.apache.tiles.TilesApplicationContext
Throws:
java.net.MalformedURLException

getServletContext

public javax.servlet.ServletContext getServletContext()

initialize

public void initialize(javax.servlet.ServletContext context)

Initialize (or reinitialize) this TilesApplicationContext instance for the specified Servlet API objects.

Parameters:
context - The ServletContext for this web application

release

public void release()

Release references to allocated resources acquired in initialize() of via subsequent processing. After this method is called, subsequent calls to any other method than initialize() will return undefined results.


createRequestContext

public TilesRequestContext createRequestContext(java.lang.Object request,
                                                java.lang.Object response)