Package org.apache.tiles.request
Interface ApplicationContext
- All Known Implementing Classes:
- ServletApplicationContext,- StrutsWildcardServletApplicationContext
public interface ApplicationContext
Defines a set of methods which tiles use to communicate to
 the tiles container and runtime environment.  There is only
 one application context per container.
- 
Method SummaryModifier and TypeMethodDescriptionReturns a mutable Map that maps application scope attribute names to their values.Returns the original, technology-dependent, context.Return an immutable Map that maps context application initialization parameters to their values.getResource(String localePath) Return the application resource mapped to the specified path.getResource(ApplicationResource base, Locale locale) Return a localized version of an ApplicationResource.getResources(String path) Return the application resources mapped to the specified path.
- 
Method Details- 
getContextObject getContext()Returns the original, technology-dependent, context.- Returns:
- The original application context.
 
- 
getApplicationScopeReturns a mutable Map that maps application scope attribute names to their values.- Returns:
- Map of key value pairs.
 
- 
getInitParamsReturn an immutable Map that maps context application initialization parameters to their values.- Returns:
- initialization parameters
 
- 
getResourceReturn the application resource mapped to the specified path.- Parameters:
- localePath- path to the desired resource, including the Locale suffix.
- Returns:
- the first located resource which matches the given path or null if no such resource exists.
 
- 
getResourceReturn a localized version of an ApplicationResource.- Parameters:
- base- the ApplicationResource.
- locale- the desired Locale.
- Returns:
- the first located resource which matches the given path or null if no such resource exists.
 
- 
getResourcesReturn the application resources mapped to the specified path.- Parameters:
- path- to the desired resource.
- Returns:
- all resources which match the given path.
 
 
-