📄 portletconfig.java
字号:
/** * Copyright 2003 IBM Corporation and Sun Microsystems, Inc. * All rights reserved. * Use is subject to license terms. */package javax.portlet;/** * The <CODE>PortletConfig</CODE> interface provides the portlet with * its configuration. The configuration holds information about the * portlet that is valid for all users. The configuration is retrieved * from the portlet definition in the deployment descriptor. * The portlet can only read the configuration data. * <p/> * The configuration information contains the portlet name, the portlet * initialization parameters, the portlet resource bundle and the portlet * application context. * * @see Portlet */public interface PortletConfig { /** * Returns the name of the portlet. * <P> * The name may be provided via server administration, assigned in the * portlet application deployment descriptor with the <code>portlet-name</code> * tag. * * @return the portlet name */ public String getPortletName(); /** * Returns the <code>PortletContext</code> of the portlet application * the portlet is in. * * @return a <code>PortletContext</code> object, used by the * caller to interact with its portlet container * @see PortletContext */ public PortletContext getPortletContext(); /** * Gets the resource bundle for the given locale based on the * resource bundle defined in the deployment descriptor * with <code>resource-bundle</code> tag or the inlined resources * defined in the deployment descriptor. * * @param locale the locale for which to retrieve the resource bundle * @return the resource bundle for the given locale */ public java.util.ResourceBundle getResourceBundle(java.util.Locale locale); /** * Returns a String containing the value of the named initialization parameter, * or null if the parameter does not exist. * * @param name a <code>String</code> specifying the name * of the initialization parameter * @return a <code>String</code> containing the value * of the initialization parameter * @exception java.lang.IllegalArgumentException if name is <code>null</code>. */ public String getInitParameter(java.lang.String name); /** * Returns the names of the portlet initialization parameters as an * <code>Enumeration</code> of String objects, or an empty <code>Enumeration</code> if the * portlet has no initialization parameters. * * @return an <code>Enumeration</code> of <code>String</code> * objects containing the names of the portlet * initialization parameters, or an empty <code>Enumeration</code> if the * portlet has no initialization parameters. */ public java.util.Enumeration getInitParameterNames();}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -