org.apache.tiles.request.servlet
Class ServletApplicationContext

java.lang.Object
  extended by org.apache.tiles.request.servlet.ServletApplicationContext
All Implemented Interfaces:
ApplicationContext

public class ServletApplicationContext
extends Object
implements ApplicationContext

Servlet-based implementation of the TilesApplicationContext interface.

Version:
$Rev: 1297705 $ $Date: 2012-03-06 15:44:30 -0500 (Tue, 06 Mar 2012) $

Constructor Summary
ServletApplicationContext(javax.servlet.ServletContext servletContext)
          Creates a new instance of ServletTilesApplicationContext.
 
Method Summary
 Map<String,Object> getApplicationScope()
          
 Object getContext()
          
 Map<String,String> getInitParams()
          
 ApplicationResource getResource(ApplicationResource base, Locale locale)
          
 ApplicationResource getResource(String localePath)
          
 Collection<ApplicationResource> getResources(String path)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletApplicationContext

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

Parameters:
servletContext - The servlet context to use.
Method Detail

getContext

public Object getContext()

Specified by:
getContext in interface ApplicationContext

getApplicationScope

public Map<String,Object> getApplicationScope()

Specified by:
getApplicationScope in interface ApplicationContext

getInitParams

public Map<String,String> getInitParams()

Specified by:
getInitParams in interface ApplicationContext

getResource

public ApplicationResource getResource(String localePath)

Specified by:
getResource in interface ApplicationContext

getResource

public ApplicationResource getResource(ApplicationResource base,
                                       Locale locale)

Specified by:
getResource in interface ApplicationContext

getResources

public Collection<ApplicationResource> getResources(String path)

Specified by:
getResources in interface ApplicationContext


Copyright © 2001-2012 Apache Software Foundation. All Rights Reserved.