|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tiles.request.portlet.PortletApplicationContext
org.apache.tiles.request.portlet.wildcard.WildcardPortletApplicationContext
public class WildcardPortletApplicationContext
Portlet-based implementation of the TilesApplicationContext interface that can resolve resources even using wildcards.
Field Summary | |
---|---|
protected ResourcePatternResolver |
resolver
The pattern resolver. |
Fields inherited from class org.apache.tiles.request.portlet.PortletApplicationContext |
---|
context |
Constructor Summary | |
---|---|
WildcardPortletApplicationContext(PortletContext portletContext)
Constructor. |
Method Summary | |
---|---|
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(PortletContext context)
Initialize (or reinitialize) this PortletApplicationContext instance
for the specified Portlet API objects. |
Methods inherited from class org.apache.tiles.request.portlet.PortletApplicationContext |
---|
getApplicationScope, getContext, getInitParams, getPortletContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ResourcePatternResolver resolver
Constructor Detail |
---|
public WildcardPortletApplicationContext(PortletContext portletContext)
portletContext
- The portlet context.Method Detail |
---|
public void initialize(PortletContext context)
Initialize (or reinitialize) this PortletApplicationContext
instance
for the specified Portlet API objects.
initialize
in class PortletApplicationContext
context
- The PortletContext
for this web applicationpublic ApplicationResource getResource(String localePath)
getResource
in interface ApplicationContext
getResource
in class PortletApplicationContext
localePath
- path to the desired resource, including the Locale suffix.
public ApplicationResource getResource(ApplicationResource base, Locale locale)
getResource
in interface ApplicationContext
getResource
in class PortletApplicationContext
base
- the ApplicationResource.locale
- the desired Locale.
public Collection<ApplicationResource> getResources(String path)
getResources
in interface ApplicationContext
getResources
in class PortletApplicationContext
path
- to the desired resource.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |