You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by jw...@apache.org on 2008/11/18 04:07:32 UTC

svn commit: r718473 - in /myfaces/trinidad/trunk: trinidad-api/src/main/java/org/apache/myfaces/trinidad/change/ trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/change/ trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/con...

Author: jwaldman
Date: Mon Nov 17 19:07:32 2008
New Revision: 718473

URL: http://svn.apache.org/viewvc?rev=718473&view=rev
Log:
TRINIDAD-1309 move NullChangeManager to public api
trunk

Added:
    myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/change/NullChangeManager.java
Modified:
    myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/change/NullChangeManager.java
    myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/context/RequestContextImpl.java

Added: myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/change/NullChangeManager.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/change/NullChangeManager.java?rev=718473&view=auto
==============================================================================
--- myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/change/NullChangeManager.java (added)
+++ myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/change/NullChangeManager.java Mon Nov 17 19:07:32 2008
@@ -0,0 +1,69 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ * 
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+package org.apache.myfaces.trinidad.change;
+
+import java.util.Iterator;
+
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+import java.util.Iterator;
+
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+
+import org.apache.myfaces.trinidad.change.ChangeManager;
+import org.apache.myfaces.trinidad.change.ComponentChange;
+
+/**
+ * An ChangeManager implementation that is all a no-op.
+ *
+ */
+public class NullChangeManager extends ChangeManager
+{
+  /**
+   * {@inheritDoc}
+   */
+  @Override
+  public void addComponentChange(
+    FacesContext facesContext,
+    UIComponent uiComponent,
+    ComponentChange change)
+  {
+    // do nothing
+  }
+  
+  /**
+   * {@inheritDoc}
+   */
+  @Override
+  public Iterator<ComponentChange> getComponentChanges(FacesContext facesContext,
+                             UIComponent uiComponent)
+  {
+    return null;
+  }
+  
+  /**
+   * {@inheritDoc}
+   */
+  @Override
+  public Iterator<String> getComponentIdsWithChanges(FacesContext facesContext)
+  {
+    return null;
+  }
+}
\ No newline at end of file

Modified: myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/change/NullChangeManager.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/change/NullChangeManager.java?rev=718473&r1=718472&r2=718473&view=diff
==============================================================================
--- myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/change/NullChangeManager.java (original)
+++ myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/change/NullChangeManager.java Mon Nov 17 19:07:32 2008
@@ -18,48 +18,12 @@
  */
 package org.apache.myfaces.trinidadinternal.change;
 
-import java.util.Iterator;
-
-import javax.faces.component.UIComponent;
-import javax.faces.context.FacesContext;
-
-import org.apache.myfaces.trinidad.change.ChangeManager;
-import org.apache.myfaces.trinidad.change.ComponentChange;
-
-/**
- * An ChangeManager implementation that is all a no-op.
- *
- */
-public class NullChangeManager extends ChangeManager
+ /**
+  *  For backwards compatibility only. Deprecated in 1.x.10, and will soon be removed. 
+  * @deprecated
+  */
+ @Deprecated
+public class NullChangeManager extends org.apache.myfaces.trinidad.change.NullChangeManager
 {
-  /**
-   * {@inheritDoc}
-   */
-  @Override
-  public void addComponentChange(
-    FacesContext facesContext,
-    UIComponent uiComponent,
-    ComponentChange change)
-  {
-    // do nothing
-  }
-  
-  /**
-   * {@inheritDoc}
-   */
-  @Override
-  public Iterator<ComponentChange> getComponentChanges(FacesContext facesContext,
-                             UIComponent uiComponent)
-  {
-    return null;
-  }
-  
-  /**
-   * {@inheritDoc}
-   */
-  @Override
-  public Iterator<String> getComponentIdsWithChanges(FacesContext facesContext)
-  {
-    return null;
-  }
+
 }

Modified: myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/context/RequestContextImpl.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/context/RequestContextImpl.java?rev=718473&r1=718472&r2=718473&view=diff
==============================================================================
--- myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/context/RequestContextImpl.java (original)
+++ myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/context/RequestContextImpl.java Mon Nov 17 19:07:32 2008
@@ -37,6 +37,7 @@
 import javax.servlet.http.HttpServletResponse;
 
 import org.apache.myfaces.trinidad.change.ChangeManager;
+import org.apache.myfaces.trinidad.change.NullChangeManager;
 import org.apache.myfaces.trinidad.change.SessionChangeManager;
 import org.apache.myfaces.trinidad.component.UIXCollection;
 import org.apache.myfaces.trinidad.config.RegionManager;
@@ -57,7 +58,6 @@
 import org.apache.myfaces.trinidadinternal.agent.AgentFactoryImpl;
 import org.apache.myfaces.trinidadinternal.agent.TrinidadAgentImpl;
 import org.apache.myfaces.trinidadinternal.application.StateManagerImpl;
-import org.apache.myfaces.trinidadinternal.change.NullChangeManager;
 import org.apache.myfaces.trinidadinternal.el.FormatterMap;
 import org.apache.myfaces.trinidadinternal.el.HelpProvider;
 import org.apache.myfaces.trinidadinternal.el.OracleHelpProvider;