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 Summary
Modifier 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
-
getContext
Object getContext()Returns the original, technology-dependent, context.- Returns:
- The original application context.
-
getApplicationScope
Returns a mutable Map that maps application scope attribute names to their values.- Returns:
- Map of key value pairs.
-
getInitParams
Return an immutable Map that maps context application initialization parameters to their values.- Returns:
- initialization parameters
-
getResource
Return 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.
-
getResource
Return 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.
-
getResources
Return the application resources mapped to the specified path.- Parameters:
path
- to the desired resource.- Returns:
- all resources which match the given path.
-