You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-scm@portals.apache.org by ms...@apache.org on 2016/01/25 13:30:29 UTC
[2/5] portals-pluto git commit: Worked on making portlet API
consistent with jira issues #2
Worked on making portlet API consistent with jira issues #2
Project: http://git-wip-us.apache.org/repos/asf/portals-pluto/repo
Commit: http://git-wip-us.apache.org/repos/asf/portals-pluto/commit/2c2a3692
Tree: http://git-wip-us.apache.org/repos/asf/portals-pluto/tree/2c2a3692
Diff: http://git-wip-us.apache.org/repos/asf/portals-pluto/diff/2c2a3692
Branch: refs/heads/V3Prototype
Commit: 2c2a3692afd0f58925e877174112ad2fb27322d3
Parents: 20fdcf2
Author: Scott Nicklous <ms...@apache.org>
Authored: Fri Jan 22 14:00:44 2016 +0100
Committer: Scott Nicklous <ms...@apache.org>
Committed: Fri Jan 22 14:00:44 2016 +0100
----------------------------------------------------------------------
.../javax/portlet/filter/PortletConfigWrapper.java | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/2c2a3692/portlet-api/src/main/java/javax/portlet/filter/PortletConfigWrapper.java
----------------------------------------------------------------------
diff --git a/portlet-api/src/main/java/javax/portlet/filter/PortletConfigWrapper.java b/portlet-api/src/main/java/javax/portlet/filter/PortletConfigWrapper.java
index 83ef903..3831c33 100644
--- a/portlet-api/src/main/java/javax/portlet/filter/PortletConfigWrapper.java
+++ b/portlet-api/src/main/java/javax/portlet/filter/PortletConfigWrapper.java
@@ -31,6 +31,7 @@ import javax.portlet.WindowState;
import javax.xml.namespace.QName;
/**
+ *
* @author Scott Nicklous
*
*/
@@ -39,10 +40,20 @@ public class PortletConfigWrapper implements PortletConfig {
protected PortletConfig wrapped;
/**
+ * <div class="changed_added_3_0">
+ * The <code>PortletConfigWrapper</code> provides a convenient
+ * implementation of the <code>PortletConfig</code> interface
+ * that can be subclassed by developers wishing to adapt the request.
+ * This class implements the Wrapper or Decorator pattern.
+ * Methods default to calling through to the wrapped request object.
+ * </div>
* Construct with appropriate object.
*/
- public PortletConfigWrapper(PortletConfig config) {
- this.wrapped = config;
+ public PortletConfigWrapper(PortletConfig wrapped) {
+ if (wrapped == null) {
+ throw new java.lang.IllegalArgumentException("Wrapped object is null");
+ }
+ this.wrapped = wrapped;
}