|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tiles.request.portlet.PortletApplicationContext
public class PortletApplicationContext
Portlet-based TilesApplicationContext implementation.
Field Summary | |
---|---|
protected javax.portlet.PortletContext |
context
The PortletContext for this web application. |
Constructor Summary | |
---|---|
PortletApplicationContext(javax.portlet.PortletContext context)
Creates a new instance of PortletTilesApplicationContext. |
Method Summary | |
---|---|
Map<String,Object> |
getApplicationScope()
Returns a mutable Map that maps application scope attribute names to their values. |
Object |
getContext()
Returns the original, technology-dependent, context. |
Map<String,String> |
getInitParams()
Return an immutable Map that maps context application initialization parameters to their values. |
javax.portlet.PortletContext |
getPortletContext()
Return the PortletContext for this context. |
ApplicationResource |
getResource(ApplicationResource base,
Locale locale)
Return a localized version of an ApplicationResource. |
ApplicationResource |
getResource(String localePath)
Return the application resource mapped to the specified path. |
Collection<ApplicationResource> |
getResources(String path)
Return the application resources mapped to the specified path. |
void |
initialize(javax.portlet.PortletContext context)
Initialize (or reinitialize) this PortletApplicationContext instance
for the specified Portlet API objects. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected javax.portlet.PortletContext context
The PortletContext
for this web application.
Constructor Detail |
---|
public PortletApplicationContext(javax.portlet.PortletContext context)
context
- The portlet context to use.Method Detail |
---|
public Object getContext()
getContext
in interface ApplicationContext
public void initialize(javax.portlet.PortletContext context)
Initialize (or reinitialize) this PortletApplicationContext
instance
for the specified Portlet API objects.
context
- The PortletContext
for this web applicationpublic javax.portlet.PortletContext getPortletContext()
Return the PortletContext
for this context.
public Map<String,Object> getApplicationScope()
getApplicationScope
in interface ApplicationContext
public Map<String,String> getInitParams()
getInitParams
in interface ApplicationContext
public ApplicationResource getResource(String localePath)
getResource
in interface ApplicationContext
localePath
- path to the desired resource, including the Locale suffix.
public ApplicationResource getResource(ApplicationResource base, Locale locale)
getResource
in interface ApplicationContext
base
- the ApplicationResource.locale
- the desired Locale.
public Collection<ApplicationResource> getResources(String path)
getResources
in interface ApplicationContext
path
- to the desired resource.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |