站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 2.0.5 API 文档英文版

MockPortletConfig (Spring Framework API 2.0) - Spring Framework 2.0.5 API 文档英文版

The Spring Framework

org.springframework.mock.web.portlet
Class MockPortletConfig

java.lang.Object
  extended by org.springframework.mock.web.portlet.MockPortletConfig
All Implemented Interfaces:
PortletConfig

public class MockPortletConfig
extends Object
implements PortletConfig

Mock implementation of the PortletConfig interface.

Since:
2.0
Author:
John A. Lewis, Juergen Hoeller

Constructor Summary
MockPortletConfig(PortletContext portletContext)
          Create new MockPortletConfig with empty String as name.
MockPortletConfig(PortletContext portletContext, String portletName)
          Create new MockPortletConfig.
 
Method Summary
 void addInitParameter(String name, String value)
           
 String getInitParameter(String name)
           
 Enumeration getInitParameterNames()
           
 PortletContext getPortletContext()
           
 String getPortletName()
           
 ResourceBundle getResourceBundle(Locale locale)
           
 void setResourceBundle(Locale locale, ResourceBundle resourceBundle)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockPortletConfig

public MockPortletConfig(PortletContext portletContext)
Create new MockPortletConfig with empty String as name.

Parameters:
portletContext - the PortletContext that the portlet runs in

MockPortletConfig

public MockPortletConfig(PortletContext portletContext,
                         String portletName)
Create new MockPortletConfig.

Parameters:
portletContext - the PortletContext that the portlet runs in
portletName - the name of the portlet
Method Detail

getPortletName

public String getPortletName()
Specified by:
getPortletName in interface PortletConfig

getPortletContext

public PortletContext getPortletContext()
Specified by:
getPortletContext in interface PortletConfig

setResourceBundle

public void setResourceBundle(Locale locale,
                              ResourceBundle resourceBundle)

getResourceBundle

public ResourceBundle getResourceBundle(Locale locale)
Specified by:
getResourceBundle in interface PortletConfig

addInitParameter

public void addInitParameter(String name,
                             String value)

getInitParameter

public String getInitParameter(String name)
Specified by:
getInitParameter in interface PortletConfig

getInitParameterNames

public Enumeration getInitParameterNames()
Specified by:
getInitParameterNames in interface PortletConfig

The Spring Framework

Copyright © 2002-2007 The Spring Framework.