
public class WildcardPortletApplicationContext extends PortletApplicationContext
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.core.io.support.ResourcePatternResolver |
resolver
The pattern resolver.
|
context| Constructor and Description |
|---|
WildcardPortletApplicationContext(javax.portlet.PortletContext portletContext)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
getApplicationScope, getContext, getInitParams, getPortletContextprotected org.springframework.core.io.support.ResourcePatternResolver resolver
public WildcardPortletApplicationContext(javax.portlet.PortletContext portletContext)
portletContext - The portlet context.public void initialize(javax.portlet.PortletContext context)
Initialize (or reinitialize) this PortletApplicationContext instance
for the specified Portlet API objects.
initialize in class PortletApplicationContextcontext - The PortletContext for this web applicationpublic ApplicationResource getResource(String localePath)
getResource in interface ApplicationContextgetResource in class PortletApplicationContextlocalePath - path to the desired resource, including the Locale suffix.public ApplicationResource getResource(ApplicationResource base, Locale locale)
getResource in interface ApplicationContextgetResource in class PortletApplicationContextbase - the ApplicationResource.locale - the desired Locale.public Collection<ApplicationResource> getResources(String path)
getResources in interface ApplicationContextgetResources in class PortletApplicationContextpath - to the desired resource.Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.