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, getPortletContext
protected 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 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.Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.