myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sless...@apache.org
Subject svn commit: r761981 [5/7] - in /myfaces/core/branches/2_0_0/api/src/main/java/javax/faces: ./ application/ component/ component/behavior/ component/visit/ context/ convert/ event/ model/ render/ validator/ view/ view/facelets/ webapp/ webapp/pdl/
Date Sat, 04 Apr 2009 18:44:19 GMT
Modified: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/ExternalContext.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/ExternalContext.java?rev=761981&r1=761980&r2=761981&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/ExternalContext.java (original)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/ExternalContext.java Sat Apr  4 18:44:14 2009
@@ -20,6 +20,7 @@
 
 import java.io.IOException;
 import java.io.OutputStream;
+import java.io.Writer;
 import java.util.Iterator;
 import java.util.Locale;
 import java.util.Map;
@@ -39,14 +40,33 @@
     public static final String FORM_AUTH = "FORM";
 
     /**
-     * @since JSF 2.0
+     * 
+     * @param name
+     * @param value
+     * @param properties
+     * 
+     * @since 2.0
      */
     public void addResponseCookie(String name, String value, Map<String, Object> properties)
     {
+        // TODO: IMPLEMENT IMPL
         throw new UnsupportedOperationException();
     }
 
-    public abstract void dispatch(String path) throws java.io.IOException;
+    /**
+     * 
+     * @param name
+     * @param value
+     * 
+     * @since 2.0
+     */
+    public void addResponseHeader(String name, String value)
+    {
+        // TODO: IMPLEMENT IMPL
+        throw new UnsupportedOperationException();
+    }
+
+    public abstract void dispatch(String path) throws IOException;
 
     public abstract String encodeActionURL(String url);
 
@@ -58,36 +78,24 @@
 
     public abstract String getAuthType();
 
-    /**
-     * Returns the content length or -1 if the unknown.
-     * 
-     * @since JSF 2.0
-     * @return the length or -1
-     */
-    public int getContentLength()
-    {
-        // TODO: JSF 2.0 MYFACES-1950
-        // VALIDATE: Should this be asbtract or throws UnsupportedOperationException? Check with the EG
-        return -1;
-    }
-
     public abstract Object getContext();
 
     /**
      * Returns the name of the underlying context
      * 
-     * @since JSF 2.0
      * @return the name or null
+     * 
+     * @since 2.0
      */
     public String getContextName()
     {
-        // TODO: JSF 2.0 MYFACES-1950
-        // VALIDATE: Should this be asbtract or throws UnsupportedOperationException? Check with the EG
-        return null;
+        // TODO: IMPLEMENT IMPL JSF 2.0 MYFACES-1950
+        throw new UnsupportedOperationException();
     }
 
     public abstract String getInitParameter(String name);
 
+    // FIXME: Notify EG about generic usage
     public abstract Map getInitParameterMap();
 
     /**
@@ -95,6 +103,7 @@
      */
     public String getMimeType(String file)
     {
+        // TODO: IMPLEMENT IMPL
         throw new UnsupportedOperationException();
     }
 
@@ -103,6 +112,7 @@
      */
     public String getRealPath(String path)
     {
+        // TODO: IMPLEMENT IMPL
         throw new UnsupportedOperationException();
     }
 
@@ -115,6 +125,18 @@
         throw new UnsupportedOperationException();
     }
 
+    /**
+     * 
+     * @return
+     * 
+     * @since 2.0
+     */
+    public String getRequestContentLength()
+    {
+        // TODO: IMPLEMENT IMPL
+        throw new UnsupportedOperationException();
+    }
+
     public String getRequestContentType()
     {
         throw new UnsupportedOperationException();
@@ -147,6 +169,7 @@
      */
     public String getRequestScheme()
     {
+        // TODO: IMPLEMENT IMPL
         throw new UnsupportedOperationException();
     }
 
@@ -155,6 +178,7 @@
      */
     public String getRequestServerName()
     {
+        // TODO: IMPLEMENT IMPL
         throw new UnsupportedOperationException();
     }
 
@@ -163,6 +187,7 @@
      */
     public int getRequestServerPort()
     {
+        // TODO: IMPLEMENT IMPL
         throw new UnsupportedOperationException();
     }
 
@@ -177,6 +202,23 @@
     public abstract Object getResponse();
 
     /**
+     * 
+     * @return
+     * 
+     * @since 2.0
+     */
+    public int getResponseBufferSize()
+    {
+        // TODO: IMPLEMENT IMPL
+        throw new UnsupportedOperationException();
+    }
+
+    public String getResponseCharacterEncoding()
+    {
+        throw new UnsupportedOperationException("JSF 1.2 : figure out how to tell if this is a Portlet request");
+    }
+
+    /**
      * throws <code>UnsupportedOperationException</code> by default.
      * 
      * @since JSF 1.2
@@ -191,6 +233,16 @@
      */
     public OutputStream getResponseOutputStream() throws IOException
     {
+        // TODO: IMPLEMENT IMPL
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * @since JSF 2.0
+     */
+    public Writer getResponseOutputWriter() throws IOException
+    {
+        // TODO: IMPLEMENT IMPL
         throw new UnsupportedOperationException();
     }
 
@@ -201,6 +253,73 @@
     public abstract java.security.Principal getUserPrincipal();
 
     /**
+     * 
+     * 
+     * @since 2.0
+     */
+    public void invalidateSession()
+    {
+        // TODO: IMPLEMENT IMPL
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * 
+     * @return
+     * 
+     * @since 2.0
+     */
+    public boolean isResponseCommitted()
+    {
+        // TODO: IMPLEMENT IMPL
+        throw new UnsupportedOperationException();
+    }
+
+    public abstract boolean isUserInRole(String role);
+
+    public abstract void log(String message);
+
+    public abstract void log(String message, Throwable exception);
+
+    public abstract void redirect(String url) throws java.io.IOException;
+
+    /**
+     * 
+     * @throws IOException
+     * 
+     * @since 2.0
+     */
+    public void responseFlushBuffer() throws IOException
+    {
+        // TODO: IMPLEMENT IMPL
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * 
+     * @since 2.0
+     */
+    public void responseReset()
+    {
+        // TODO: IMPLEMENT IMPL
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * 
+     * @param statusCode
+     * @param message
+     * @throws IOException
+     * 
+     * @since 2.0
+     */
+    public void responseSendError(int statusCode, String message) throws IOException
+    {
+        // TODO: IMPLEMENT IMPL
+        throw new UnsupportedOperationException();
+    }
+
+    /**
      * throws <code>UnsupportedOperationException</code> by default.
      * 
      * @since JSF 1.2
@@ -220,7 +339,6 @@
      */
     public void setRequestCharacterEncoding(String encoding) throws java.io.UnsupportedEncodingException
     {
-
         throw new UnsupportedOperationException();
     }
 
@@ -236,6 +354,18 @@
     }
 
     /**
+     * 
+     * @param size
+     * 
+     * @since 2.0
+     */
+    public void setResponseBufferSize(int size)
+    {
+        // TODO: IMPLEMENT IMPL
+        throw new UnsupportedOperationException();
+    }
+
+    /**
      * throws <code>UnsupportedOperationException</code> by default.
      * 
      * @since JSF 1.2
@@ -247,46 +377,51 @@
     }
 
     /**
-     * @since JSF 2.0
+     * 
+     * @param length
+     * 
+     * @since 2.0
      */
-    public void setResponseContentType(String contentType)
+    public void setResponseContentLength(int length)
     {
+        // TODO: IMPLEMENT IMPL
         throw new UnsupportedOperationException();
     }
 
-    public String getResponseCharacterEncoding()
+    /**
+     * 
+     * @param contentType
+     * 
+     * @since 2.0
+     */
+    public void setResponseContentType(String contentType)
     {
-        throw new UnsupportedOperationException("JSF 1.2 : figure out how to tell if this is a Portlet request");
+        // TODO: IMPLEMENT IMPL
+        throw new UnsupportedOperationException();
     }
 
     /**
-     * @since JSF 2.0
+     * 
+     * @param name
+     * @param value
+     * 
+     * @since 2.0
      */
-    public void invalidateSession()
+    public void setResponseHeader(String name, String value)
     {
+        // TODO: IMPLEMENT IMPL
         throw new UnsupportedOperationException();
     }
-
+    
     /**
-     * @since JSF 2.0
+     * 
+     * @param statusCode
+     * 
+     * @since 2.0
      */
-    /*
-       not in the jsf-spec-2.0-20080911
-       maybe we can add it later but for now we have to leave it out
-     
-    public boolean isNewSession()
-    {
-        // TODO: JSF 2.0 MYFACES-1950
-        // VALIDATE: Should this be asbtract or throws UnsupportedOperationException? Check with the EG
-        return false;
+    public void setResponseStatus(int statusCode)
+    {
+        // TODO: IMPLEMENT IMPL
+        throw new UnsupportedOperationException();
     }
-    */
-
-    public abstract boolean isUserInRole(String role);
-
-    public abstract void log(String message);
-
-    public abstract void log(String message, Throwable exception);
-
-    public abstract void redirect(String url) throws java.io.IOException;
 }

Added: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/ExternalContextFactory.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/ExternalContextFactory.java?rev=761981&view=auto
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/ExternalContextFactory.java (added)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/ExternalContextFactory.java Sat Apr  4 18:44:14 2009
@@ -0,0 +1,40 @@
+/*
+ * 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 javax.faces.context;
+
+import javax.faces.FacesException;
+import javax.faces.FacesWrapper;
+
+/**
+ * @author Simon Lessard (latest modification by $Author: slessard $)
+ * @version $Revision: 696523 $ $Date: 2009-03-14 17:35:31 -0400 (mer., 17 sept. 2008) $
+ * 
+ * @since 2.0
+ */
+public abstract class ExternalContextFactory implements FacesWrapper<ExternalContextFactory>
+{
+    public abstract ExternalContext getExternalContext(Object context, Object request, Object response)
+            throws FacesException;
+
+    @Override
+    public ExternalContextFactory getWrapped()
+    {
+        return null;
+    }
+}

Added: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/ExternalContextWrapper.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/ExternalContextWrapper.java?rev=761981&view=auto
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/ExternalContextWrapper.java (added)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/ExternalContextWrapper.java Sat Apr  4 18:44:14 2009
@@ -0,0 +1,437 @@
+/*
+ * 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 javax.faces.context;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.OutputStream;
+import java.io.UnsupportedEncodingException;
+import java.io.Writer;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.security.Principal;
+import java.util.Iterator;
+import java.util.Locale;
+import java.util.Map;
+import java.util.Set;
+
+import javax.faces.FacesWrapper;
+
+/**
+ * @author Simon Lessard (latest modification by $Author: slessard $)
+ * @version $Revision: 696523 $ $Date: 2009-03-14 17:28:45 -0400 (mer., 17 sept. 2008) $
+ *
+ * @since 2.0
+ */
+public abstract class ExternalContextWrapper extends ExternalContext implements FacesWrapper<ExternalContext>
+{
+
+    /**
+     * 
+     */
+    public ExternalContextWrapper()
+    {
+    }
+
+    @Override
+    public void addResponseCookie(String name, String value, Map<String, Object> properties)
+    {
+        getWrapped().addResponseCookie(name, value, properties);
+    }
+
+    @Override
+    public void addResponseHeader(String name, String value)
+    {
+        getWrapped().addResponseHeader(name, value);
+    }
+
+    @Override
+    public void dispatch(String path) throws IOException
+    {
+        getWrapped().dispatch(path);
+    }
+
+    @Override
+    public String encodeActionURL(String url)
+    {
+        return getWrapped().encodeActionURL(url);
+    }
+
+    @Override
+    public String encodeNamespace(String name)
+    {
+        return getWrapped().encodeNamespace(name);
+    }
+
+    @Override
+    public String encodeResourceURL(String url)
+    {
+        return getWrapped().encodeResourceURL(url);
+    }
+
+    @Override
+    public Map<String, Object> getApplicationMap()
+    {
+        return getWrapped().getApplicationMap();
+    }
+
+    @Override
+    public String getAuthType()
+    {
+        return getWrapped().getAuthType();
+    }
+
+    @Override
+    public Object getContext()
+    {
+        return getWrapped().getContext();
+    }
+
+    @Override
+    public String getContextName()
+    {
+        return getWrapped().getContextName();
+    }
+
+    @Override
+    public String getInitParameter(String name)
+    {
+        return getWrapped().getInitParameter(name);
+    }
+
+    @Override
+    public Map getInitParameterMap()
+    {
+        return getWrapped().getInitParameterMap();
+    }
+
+    @Override
+    public String getMimeType(String file)
+    {
+        return getWrapped().getMimeType(file);
+    }
+
+    @Override
+    public String getRealPath(String path)
+    {
+        return getWrapped().getRealPath(path);
+    }
+
+    @Override
+    public String getRemoteUser()
+    {
+        return getWrapped().getRemoteUser();
+    }
+
+    @Override
+    public Object getRequest()
+    {
+        return getWrapped().getRequest();
+    }
+
+    @Override
+    public String getRequestCharacterEncoding()
+    {
+        return getWrapped().getRequestCharacterEncoding();
+    }
+
+    @Override
+    public String getRequestContentLength()
+    {
+        return getWrapped().getRequestContentLength();
+    }
+
+    @Override
+    public String getRequestContentType()
+    {
+        return getWrapped().getRequestContentType();
+    }
+
+    @Override
+    public String getRequestContextPath()
+    {
+        return getWrapped().getRequestContextPath();
+    }
+
+    @Override
+    public Map<String, Object> getRequestCookieMap()
+    {
+        return getWrapped().getRequestCookieMap();
+    }
+
+    @Override
+    public Map<String, String> getRequestHeaderMap()
+    {
+        return getWrapped().getRequestHeaderMap();
+    }
+
+    @Override
+    public Map<String, String[]> getRequestHeaderValuesMap()
+    {
+        return getWrapped().getRequestHeaderValuesMap();
+    }
+
+    @Override
+    public Locale getRequestLocale()
+    {
+        return getWrapped().getRequestLocale();
+    }
+
+    @Override
+    public Iterator<Locale> getRequestLocales()
+    {
+        return getWrapped().getRequestLocales();
+    }
+
+    @Override
+    public Map<String, Object> getRequestMap()
+    {
+        return getWrapped().getRequestMap();
+    }
+
+    @Override
+    public Map<String, String> getRequestParameterMap()
+    {
+        return getWrapped().getRequestParameterMap();
+    }
+
+    @Override
+    public Iterator<String> getRequestParameterNames()
+    {
+        return getWrapped().getRequestParameterNames();
+    }
+
+    @Override
+    public Map<String, String[]> getRequestParameterValuesMap()
+    {
+        return getWrapped().getRequestParameterValuesMap();
+    }
+
+    @Override
+    public String getRequestPathInfo()
+    {
+        return getWrapped().getRequestPathInfo();
+    }
+
+    @Override
+    public String getRequestScheme()
+    {
+        return getWrapped().getRequestScheme();
+    }
+
+    @Override
+    public String getRequestServerName()
+    {
+        return getWrapped().getRequestServerName();
+    }
+
+    @Override
+    public int getRequestServerPort()
+    {
+        return getWrapped().getRequestServerPort();
+    }
+
+    @Override
+    public String getRequestServletPath()
+    {
+        return getWrapped().getRequestServletPath();
+    }
+
+    @Override
+    public URL getResource(String path) throws MalformedURLException
+    {
+        return getWrapped().getResource(path);
+    }
+
+    @Override
+    public InputStream getResourceAsStream(String path)
+    {
+        return getWrapped().getResourceAsStream(path);
+    }
+
+    @Override
+    public Set<String> getResourcePaths(String path)
+    {
+        return getWrapped().getResourcePaths(path);
+    }
+
+    @Override
+    public Object getResponse()
+    {
+        return getWrapped().getResponse();
+    }
+
+    @Override
+    public int getResponseBufferSize()
+    {
+        return getWrapped().getResponseBufferSize();
+    }
+
+    @Override
+    public String getResponseCharacterEncoding()
+    {
+        return getWrapped().getResponseCharacterEncoding();
+    }
+
+    @Override
+    public String getResponseContentType()
+    {
+        return getWrapped().getResponseContentType();
+    }
+
+    @Override
+    public OutputStream getResponseOutputStream() throws IOException
+    {
+        return getWrapped().getResponseOutputStream();
+    }
+
+    @Override
+    public Writer getResponseOutputWriter() throws IOException
+    {
+        return getWrapped().getResponseOutputWriter();
+    }
+
+    @Override
+    public Object getSession(boolean create)
+    {
+        return getWrapped().getSession(create);
+    }
+
+    @Override
+    public Map<String, Object> getSessionMap()
+    {
+        return getWrapped().getSessionMap();
+    }
+
+    @Override
+    public Principal getUserPrincipal()
+    {
+        return getWrapped().getUserPrincipal();
+    }
+
+    public abstract ExternalContext getWrapped();
+
+    @Override
+    public void invalidateSession()
+    {
+        getWrapped().invalidateSession();
+    }
+
+    @Override
+    public boolean isResponseCommitted()
+    {
+        return getWrapped().isResponseCommitted();
+    }
+
+    @Override
+    public boolean isUserInRole(String role)
+    {
+        return getWrapped().isUserInRole(role);
+    }
+
+    @Override
+    public void log(String message, Throwable exception)
+    {
+        getWrapped().log(message, exception);
+    }
+
+    @Override
+    public void log(String message)
+    {
+        getWrapped().log(message);
+    }
+
+    @Override
+    public void redirect(String url) throws IOException
+    {
+        getWrapped().redirect(url);
+    }
+
+    @Override
+    public void responseFlushBuffer() throws IOException
+    {
+        getWrapped().responseFlushBuffer();
+    }
+
+    @Override
+    public void responseReset()
+    {
+        getWrapped().responseReset();
+    }
+
+    @Override
+    public void responseSendError(int statusCode, String message) throws IOException
+    {
+        getWrapped().responseSendError(statusCode, message);
+    }
+
+    @Override
+    public void setRequest(Object request)
+    {
+        getWrapped().setRequest(request);
+    }
+
+    @Override
+    public void setRequestCharacterEncoding(String encoding) throws UnsupportedEncodingException
+    {
+        getWrapped().setRequestCharacterEncoding(encoding);
+    }
+
+    @Override
+    public void setResponse(Object response)
+    {
+        getWrapped().setResponse(response);
+    }
+
+    @Override
+    public void setResponseBufferSize(int size)
+    {
+        getWrapped().setResponseBufferSize(size);
+    }
+
+    @Override
+    public void setResponseCharacterEncoding(String encoding)
+    {
+        getWrapped().setResponseCharacterEncoding(encoding);
+    }
+
+    @Override
+    public void setResponseContentLength(int length)
+    {
+        getWrapped().setResponseContentLength(length);
+    }
+
+    @Override
+    public void setResponseContentType(String contentType)
+    {
+        getWrapped().setResponseContentType(contentType);
+    }
+
+    @Override
+    public void setResponseHeader(String name, String value)
+    {
+        getWrapped().setResponseHeader(name, value);
+    }
+
+    @Override
+    public void setResponseStatus(int statusCode)
+    {
+        getWrapped().setResponseStatus(statusCode);
+    }
+}

Modified: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/FacesContext.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/FacesContext.java?rev=761981&r1=761980&r2=761981&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/FacesContext.java (original)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/FacesContext.java Sat Apr  4 18:44:14 2009
@@ -18,7 +18,6 @@
  */
 package javax.faces.context;
 
-import java.util.Collections;
 import java.util.Iterator;
 import java.util.List;
 import java.util.Map;
@@ -38,8 +37,46 @@
  */
 public abstract class FacesContext
 {
+    private static ThreadLocal<FacesContext> _currentInstance = new ThreadLocal<FacesContext>();
+
+    private static ThreadLocal<FacesContext> _firstInstance = new ThreadLocal<FacesContext>();
+
+    public abstract void addMessage(String clientId, FacesMessage message);
+
+    public abstract Application getApplication();
 
     /**
+     * 
+     * @return
+     * 
+     * @since 2.0
+     */
+    public Map<Object, Object> getAttributes()
+    {
+        // TODO: IMPLEMENT IMPL JSF 2.0 #32
+        throw new UnsupportedOperationException();
+    }
+
+    public abstract Iterator<String> getClientIdsWithMessages();
+
+    public static FacesContext getCurrentInstance()
+    {
+        return _currentInstance.get();
+    }
+
+    /**
+     * 
+     * @return
+     * 
+     * @since 2.0
+     */
+    public PhaseId getCurrentPhaseId()
+    {
+        // TODO: IMPLEMENT IMPL
+        throw new UnsupportedOperationException();
+    }
+    
+    /**
      * Return the context within which all EL-expressions are evaluated.
      * <p>
      * A JSF implementation is expected to provide a full implementation of this class. However JSF also explicitly
@@ -87,7 +124,6 @@
         }
 
         ELContext elctx = ctx.getELContext();
-
         if (elctx == null)
         {
             throw new UnsupportedOperationException();
@@ -96,37 +132,80 @@
         return elctx;
     }
 
-    public abstract Application getApplication();
-
-    public Map<Object, Object> getAttributes()
+    /**
+     * 
+     * @return
+     * 
+     * @since 2.0
+     */
+    public ExceptionHandler getExceptionHandler()
     {
-        // TODO: JSF 2.0 #32
-        // VALIDATE: Should this be asbtract or throws UnsupportedOperationException? Check with the EG
-        return null;
+        // TODO: IMPLEMENT IMPL
+        throw new UnsupportedOperationException();
     }
 
-    public abstract Iterator<String> getClientIdsWithMessages();
-
-    public PhaseId getCurrentPhaseId()
+    public abstract ExternalContext getExternalContext();
+    
+    /**
+     * 
+     * @return
+     * 
+     * @since 2.0
+     */
+    public Flash getFlash()
     {
+        // TODO: IMPLEMENT IMPL
         throw new UnsupportedOperationException();
     }
 
-    public abstract ExternalContext getExternalContext();
-
     public abstract FacesMessage.Severity getMaximumSeverity();
 
-    public abstract Iterator<FacesMessage> getMessages();
-
-    public abstract Iterator<FacesMessage> getMessages(String clientId);
-
+    /**
+     * 
+     * @return
+     * 
+     * @since 2.0
+     */
     public List<FacesMessage> getMessageList()
     {
+        // TODO: IMPLEMENT IMPL
         throw new UnsupportedOperationException();
     }
-
+    
+    /**
+     * 
+     * @param clientId
+     * @return
+     * 
+     * @since 2.0
+     */
     public List<FacesMessage> getMessageList(String clientId)
     {
+        // TODO: IMPLEMENT IMPL
+        throw new UnsupportedOperationException();
+    }
+
+    public abstract Iterator<FacesMessage> getMessages();
+
+    public abstract Iterator<FacesMessage> getMessages(String clientId);
+
+    /**
+     * <p>
+     * Return the PartialViewContext for this request. The PartialViewContext is used to control the processing of
+     * specified components during the execute portion of the request processing lifecycle (known as partial processing)
+     * and the rendering of specified components (known as partial rendering). This method must return a new
+     * PartialViewContext if one does not already exist.
+     * </p>
+     * 
+     * @return The PartialViewContext
+     * @throws IllegalStateException
+     *             if this method is called after this instance has been released
+     * 
+     * @since 2.0
+     */
+    public PartialViewContext getPartialViewContext()
+    {
+        // TODO: IMPLEMENT IMPL
         throw new UnsupportedOperationException();
     }
 
@@ -138,53 +217,52 @@
 
     public abstract ResponseStream getResponseStream();
 
-    public abstract void setResponseStream(ResponseStream responseStream);
-
     public abstract ResponseWriter getResponseWriter();
-
-    public abstract void setResponseWriter(ResponseWriter responseWriter);
-
-    public abstract UIViewRoot getViewRoot();
-
-    public boolean isPostback()
+    
+    /**
+     * 
+     * @return
+     * 
+     * @since 2.0
+     */
+    public boolean getValidationFailed()
     {
+        // TODO: IMPLEMENT IMPL
         throw new UnsupportedOperationException();
     }
 
-    public ExceptionHandler getExceptionHandler()
-    {
-        throw new UnsupportedOperationException();
-    }
+    public abstract UIViewRoot getViewRoot();
 
-    public void setExceptionHandler(ExceptionHandler exceptionHandler)
+    /**
+     * 
+     * @return
+     * 
+     * @since 2.0
+     */
+    public boolean isPostback()
     {
+        // TODO: IMPLEMENT IMPL
         throw new UnsupportedOperationException();
     }
-
-    public void setCurrentPhaseId(PhaseId currentPhaseId)
+    
+    /**
+     * 
+     * @return
+     * 
+     * @since 2.0
+     */
+    public boolean isProcessingEvents()
     {
+        // TODO: IMPLEMENT IMPL
         throw new UnsupportedOperationException();
     }
 
-    public abstract void setViewRoot(UIViewRoot root);
-
-    public abstract void addMessage(String clientId, FacesMessage message);
-
     public abstract void release();
 
     public abstract void renderResponse();
 
     public abstract void responseComplete();
 
-    private static ThreadLocal<FacesContext> _currentInstance = new ThreadLocal<FacesContext>();
-
-    private static ThreadLocal<FacesContext> _firstInstance = new ThreadLocal<FacesContext>();
-
-    public static FacesContext getCurrentInstance()
-    {
-        return _currentInstance.get();
-    }
-
     protected static void setCurrentInstance(FacesContext context)
     {
         if (context == null)
@@ -204,19 +282,55 @@
     }
 
     /**
-     * <p>
-     * Return the PartialViewContext for this request. The PartialViewContext is used to control the processing of
-     * specified components during the execute portion of the request processing lifecycle (known as partial processing)
-     * and the rendering of specified components (known as partial rendering). This method must return a new
-     * PartialViewContext if one does not already exist.
-     * </p>
      * 
-     * @return The PartialViewContext
-     * @throws IllegalStateException
-     *             if this method is called after this instance has been released
+     * @return
+     * 
+     * @since 2.0
      */
-    public PartialViewContext getPartialViewContext()
+    public void setCurrentPhaseId(PhaseId currentPhaseId)
+    {
+        // TODO: IMPLEMENT IMPL
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * 
+     * @return
+     * 
+     * @since 2.0
+     */
+    public void setExceptionHandler(ExceptionHandler exceptionHandler)
+    {
+        // TODO: IMPLEMENT IMPL
+        throw new UnsupportedOperationException();
+    }
+    
+    /**
+     * 
+     * @param processingEvents
+     * 
+     * @since 2.0
+     */
+    public void setProcessingEvents(boolean processingEvents)
+    {
+        // TODO: IMPLEMENT IMPL
+        throw new UnsupportedOperationException();
+    }
+
+    public abstract void setResponseStream(ResponseStream responseStream);
+
+    public abstract void setResponseWriter(ResponseWriter responseWriter);
+
+    public abstract void setViewRoot(UIViewRoot root);
+    
+    /**
+     * 
+     * 
+     * @since 2.0
+     */
+    public void validationFailed()
     {
+        // TODO: IMPLEMENT IMPL
         throw new UnsupportedOperationException();
     }
 }

Modified: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/FacesContextFactory.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/FacesContextFactory.java?rev=761981&r1=761980&r2=761981&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/FacesContextFactory.java (original)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/FacesContextFactory.java Sat Apr  4 18:44:14 2009
@@ -24,26 +24,21 @@
 
 /**
  * see Javadoc of <a href="http://java.sun.com/javaee/javaserverfaces/1.2/docs/api/index.html">JSF Specification</a>
- *
+ * 
  * @author Manfred Geiler (latest modification by $Author$)
  * @version $Revision$ $Date$
  */
-public abstract class FacesContextFactory implements
-    FacesWrapper<FacesContextFactory>
+public abstract class FacesContextFactory implements FacesWrapper<FacesContextFactory>
 {
-    public abstract FacesContext getFacesContext(Object context,
-                                                 Object request,
-                                                 Object response,
-                                                 Lifecycle lifecycle)
+    public abstract FacesContext getFacesContext(Object context, Object request, Object response, Lifecycle lifecycle)
             throws FacesException;
-    
+
     /**
-     * If this factory has been decorated, the implementation doing the decorating may override this method to 
-     * provide access to the implementation being wrapped. A default implementation is provided that returns 
-     * <code>null</code>.
+     * If this factory has been decorated, the implementation doing the decorating may override this method to provide
+     * access to the implementation being wrapped. A default implementation is provided that returns <code>null</code>.
      * 
-     * @return the decorated <code>FacesContextFactory</code> if this factory decorates another, 
-     *         or <code>null</code> otherwise
+     * @return the decorated <code>FacesContextFactory</code> if this factory decorates another, or <code>null</code>
+     *         otherwise
      * 
      * @since 2.0
      */

Added: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/FacesContextWrapper.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/FacesContextWrapper.java?rev=761981&view=auto
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/FacesContextWrapper.java (added)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/FacesContextWrapper.java Sat Apr  4 18:44:14 2009
@@ -0,0 +1,247 @@
+/*
+ * 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 javax.faces.context;
+
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+
+import javax.el.ELContext;
+import javax.faces.FacesWrapper;
+import javax.faces.application.Application;
+import javax.faces.application.FacesMessage;
+import javax.faces.application.FacesMessage.Severity;
+import javax.faces.component.UIViewRoot;
+import javax.faces.event.PhaseId;
+import javax.faces.render.RenderKit;
+
+/**
+ * @author Simon Lessard (latest modification by $Author: slessard $)
+ * @version $Revision: 696523 $ $Date: 2009-03-14 17:50:10 -0400 (mer., 17 sept. 2008) $
+ *
+ * @since 2.0
+ */
+public abstract class FacesContextWrapper extends FacesContext implements FacesWrapper<FacesContext>
+{
+    @Override
+    public void addMessage(String clientId, FacesMessage message)
+    {
+        getWrapped().addMessage(clientId, message);
+    }
+
+    @Override
+    public Application getApplication()
+    {
+        return getWrapped().getApplication();
+    }
+
+    @Override
+    public Map<Object, Object> getAttributes()
+    {
+        return getWrapped().getAttributes();
+    }
+
+    @Override
+    public Iterator<String> getClientIdsWithMessages()
+    {
+        return getWrapped().getClientIdsWithMessages();
+    }
+
+    @Override
+    public PhaseId getCurrentPhaseId()
+    {
+        return getWrapped().getCurrentPhaseId();
+    }
+
+    @Override
+    public ELContext getELContext()
+    {
+        return getWrapped().getELContext();
+    }
+
+    @Override
+    public ExceptionHandler getExceptionHandler()
+    {
+        return getWrapped().getExceptionHandler();
+    }
+
+    @Override
+    public ExternalContext getExternalContext()
+    {
+        return getWrapped().getExternalContext();
+    }
+
+    @Override
+    public Flash getFlash()
+    {
+        return getWrapped().getFlash();
+    }
+
+    @Override
+    public Severity getMaximumSeverity()
+    {
+        return getWrapped().getMaximumSeverity();
+    }
+
+    @Override
+    public List<FacesMessage> getMessageList()
+    {
+        return getWrapped().getMessageList();
+    }
+
+    @Override
+    public List<FacesMessage> getMessageList(String clientId)
+    {
+        return getWrapped().getMessageList(clientId);
+    }
+
+    @Override
+    public Iterator<FacesMessage> getMessages()
+    {
+        return getWrapped().getMessages();
+    }
+
+    @Override
+    public Iterator<FacesMessage> getMessages(String clientId)
+    {
+        return getWrapped().getMessages(clientId);
+    }
+
+    @Override
+    public PartialViewContext getPartialViewContext()
+    {
+        return getWrapped().getPartialViewContext();
+    }
+
+    @Override
+    public RenderKit getRenderKit()
+    {
+        return getWrapped().getRenderKit();
+    }
+
+    @Override
+    public boolean getRenderResponse()
+    {
+        return getWrapped().getRenderResponse();
+    }
+
+    @Override
+    public boolean getResponseComplete()
+    {
+        return getWrapped().getResponseComplete();
+    }
+
+    @Override
+    public ResponseStream getResponseStream()
+    {
+        return getWrapped().getResponseStream();
+    }
+
+    @Override
+    public ResponseWriter getResponseWriter()
+    {
+        return getWrapped().getResponseWriter();
+    }
+
+    @Override
+    public boolean getValidationFailed()
+    {
+        return getWrapped().getValidationFailed();
+    }
+
+    @Override
+    public UIViewRoot getViewRoot()
+    {
+        return getWrapped().getViewRoot();
+    }
+
+    public abstract FacesContext getWrapped();
+
+    @Override
+    public boolean isPostback()
+    {
+        return getWrapped().isPostback();
+    }
+
+    @Override
+    public boolean isProcessingEvents()
+    {
+        return getWrapped().isProcessingEvents();
+    }
+
+    @Override
+    public void release()
+    {
+        getWrapped().release();
+    }
+
+    @Override
+    public void renderResponse()
+    {
+        getWrapped().renderResponse();
+    }
+
+    @Override
+    public void responseComplete()
+    {
+        getWrapped().responseComplete();
+    }
+
+    @Override
+    public void setCurrentPhaseId(PhaseId currentPhaseId)
+    {
+        getWrapped().setCurrentPhaseId(currentPhaseId);
+    }
+
+    @Override
+    public void setExceptionHandler(ExceptionHandler exceptionHandler)
+    {
+        getWrapped().setExceptionHandler(exceptionHandler);
+    }
+
+    @Override
+    public void setProcessingEvents(boolean processingEvents)
+    {
+        getWrapped().setProcessingEvents(processingEvents);
+    }
+
+    @Override
+    public void setResponseStream(ResponseStream responseStream)
+    {
+        getWrapped().setResponseStream(responseStream);
+    }
+
+    @Override
+    public void setResponseWriter(ResponseWriter responseWriter)
+    {
+        getWrapped().setResponseWriter(responseWriter);
+    }
+
+    @Override
+    public void setViewRoot(UIViewRoot root)
+    {
+        getWrapped().setViewRoot(root);
+    }
+
+    @Override
+    public void validationFailed()
+    {
+        getWrapped().validationFailed();
+    }
+}

Added: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/Flash.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/Flash.java?rev=761981&view=auto
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/Flash.java (added)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/Flash.java Sat Apr  4 18:44:14 2009
@@ -0,0 +1,42 @@
+/*
+ * 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 javax.faces.context;
+
+import java.util.Map;
+
+/**
+ * @author Simon Lessard (latest modification by $Author: slessard $)
+ * @version $Revision: 696523 $ $Date: 2009-03-14 17:36:31 -0400 (mer., 17 sept. 2008) $
+ * 
+ * @since 2.0
+ */
+public abstract class Flash implements Map<String, Object>
+{
+    public abstract boolean isKeepMessages();
+
+    public abstract boolean isRedirect();
+
+    public abstract void keep(String key);
+
+    public abstract void putNow(String key, Object value);
+    
+    public abstract void setKeepMessages(boolean newValue);
+    
+    public abstract void setRedirect(boolean newValue);
+}

Added: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/PartialResponseWriter.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/PartialResponseWriter.java?rev=761981&view=auto
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/PartialResponseWriter.java (added)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/PartialResponseWriter.java Sat Apr  4 18:44:14 2009
@@ -0,0 +1,141 @@
+/*
+ * 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 javax.faces.context;
+
+import java.io.IOException;
+import java.util.Map;
+
+/**
+ * @author Simon Lessard (latest modification by $Author: slessard $)
+ * @version $Revision: 696523 $ $Date: 2009-03-14 17:54:13 -0400 (mer., 17 sept. 2008) $
+ * 
+ * @since 2.0
+ */
+public class PartialResponseWriter extends ResponseWriterWrapper
+{
+    public static final String RENDER_ALL_MARKER = "javax.faces.ViewRoot";
+    public static final String VIEW_STATE_MARKER = "javax.faces.ViewState";
+
+    private ResponseWriter _wrapped;
+
+    /**
+     * 
+     */
+    public PartialResponseWriter(ResponseWriter writer)
+    {
+        _wrapped = writer;
+    }
+
+    public void delete(String targetId) throws IOException
+    {
+        // TODO: IMPLEMENT HERE
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public void endDocument() throws IOException
+    {
+        // TODO: IMPLEMENT HERE
+    }
+
+    public void endError() throws IOException
+    {
+        // TODO: IMPLEMENT HERE
+    }
+
+    public void endEval() throws IOException
+    {
+        // TODO: IMPLEMENT HERE
+    }
+
+    public void endExtension() throws IOException
+    {
+        // TODO: IMPLEMENT HERE
+    }
+
+    public void endInsert() throws IOException
+    {
+        // TODO: IMPLEMENT HERE
+    }
+
+    public void endUpdate() throws IOException
+    {
+        // TODO: IMPLEMENT HERE
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public ResponseWriter getWrapped()
+    {
+        return _wrapped;
+    }
+
+    public void redirect(String url) throws IOException
+    {
+        // TODO: IMPLEMENT HERE
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public void startDocument() throws IOException
+    {
+        // TODO: IMPLEMENT HERE
+    }
+
+    public void startError(String errorName) throws IOException
+    {
+        // TODO: IMPLEMENT HERE
+    }
+
+    public void startEval() throws IOException
+    {
+        // TODO: IMPLEMENT HERE
+    }
+
+    public void startExtension(Map<String, String> attributes) throws IOException
+    {
+        // TODO: IMPLEMENT HERE
+    }
+
+    public void startInsertAfter(String targetId) throws IOException
+    {
+        // TODO: IMPLEMENT HERE
+    }
+
+    public void startInsertBefore(String targetId) throws IOException
+    {
+        // TODO: IMPLEMENT HERE
+    }
+
+    public void startUpdate(String targetId) throws IOException
+    {
+        // TODO: IMPLEMENT HERE
+    }
+
+    public void updateAttributes(String targetId, Map<String, String> attributes) throws IOException
+    {
+        // TODO: IMPLEMENT HERE
+    }
+}

Modified: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/PartialViewContext.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/PartialViewContext.java?rev=761981&r1=761980&r2=761981&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/PartialViewContext.java (original)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/PartialViewContext.java Sat Apr  4 18:44:14 2009
@@ -18,8 +18,9 @@
  */
 package javax.faces.context;
 
-import java.util.List;
-import java.util.Map;
+import java.util.Collection;
+
+import javax.faces.event.PhaseId;
 
 /**
  * @author Simon Lessard (latest modification by $Author: slessard $)
@@ -29,33 +30,30 @@
  */
 public abstract class PartialViewContext
 {
-    public static final String NO_PARTIAL_PHASE_CLIENT_IDS = "none";
+    public static final String ALL_PARTIAL_PHASE_CLIENT_IDS = "@all";
+    public static final String NO_PARTIAL_PHASE_CLIENT_IDS = "@none";
     public static final String PARTIAL_EXECUTE_PARAM_NAME = "javax.faces.partial.execute";
     public static final String PARTIAL_RENDER_PARAM_NAME = "javax.faces.partial.render";
     
-    public abstract void enableResponseWriting(boolean enable);
-    
-    public abstract Map<Object,Object> getAttributes();
-    
-    public abstract List<String> getExecutePhaseClientIds();
+    public abstract Collection<String> getExecuteIds();
     
-    public abstract ResponseWriter getPartialResponseWriter();
+    public abstract PartialResponseWriter getPartialResponseWriter();
     
-    public abstract List<String> getRenderPhaseClientIds();
+    public abstract Collection<String> getRenderIds();
     
     public abstract boolean isAjaxRequest();
     
-    public abstract boolean isExecuteNone();
+    public abstract boolean isExecuteAll();
+    
+    public abstract boolean isPartialRequest();
     
     public abstract boolean isRenderAll();
     
-    public abstract boolean isRenderNone();
+    public abstract void processPartial(PhaseId phaseId);
     
     public abstract void release();
     
-    public abstract void setExecutePhaseClientIds(List<String> executePhaseClientIds);
+    public abstract void setPartialRequest(boolean isPartialRequest);
     
     public abstract void setRenderAll(boolean renderAll);
-    
-    public abstract void setRenderPhaseClientIds(List<String> renderPhaseClientIds);
 }

Added: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/PartialViewContextFactory.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/PartialViewContextFactory.java?rev=761981&view=auto
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/PartialViewContextFactory.java (added)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/PartialViewContextFactory.java Sat Apr  4 18:44:14 2009
@@ -0,0 +1,38 @@
+/*
+ * 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 javax.faces.context;
+
+import javax.faces.FacesWrapper;
+
+/**
+ * @author Simon Lessard (latest modification by $Author: slessard $)
+ * @version $Revision: 696523 $ $Date: 2009-03-14 18:05:59 -0400 (mer., 17 sept. 2008) $
+ *
+ * @since 2.0
+ */
+public abstract class PartialViewContextFactory implements FacesWrapper<PartialViewContextFactory>
+{
+    public abstract PartialViewContext getPartialViewContext(FacesContext context);
+    
+    @Override
+    public PartialViewContextFactory getWrapped()
+    {
+        return null;
+    }
+}

Added: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/PartialViewContextWrapper.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/PartialViewContextWrapper.java?rev=761981&view=auto
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/PartialViewContextWrapper.java (added)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/PartialViewContextWrapper.java Sat Apr  4 18:44:14 2009
@@ -0,0 +1,109 @@
+/*
+ * 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 javax.faces.context;
+
+import java.util.Collection;
+
+import javax.faces.FacesWrapper;
+import javax.faces.event.PhaseId;
+
+/**
+ * @author Simon Lessard (latest modification by $Author: slessard $)
+ * @version $Revision: 696523 $ $Date: 2009-03-14 18:07:00 -0400 (mer., 17 sept. 2008) $
+ *
+ * @since 2.0
+ */
+public abstract class PartialViewContextWrapper extends PartialViewContext implements FacesWrapper<PartialViewContext>
+{
+    /**
+     * 
+     */
+    public PartialViewContextWrapper()
+    {
+    }
+
+    @Override
+    public Collection<String> getExecuteIds()
+    {
+        return getWrapped().getExecuteIds();
+    }
+
+    @Override
+    public PartialResponseWriter getPartialResponseWriter()
+    {
+        return getWrapped().getPartialResponseWriter();
+    }
+
+    @Override
+    public Collection<String> getRenderIds()
+    {
+        return getWrapped().getRenderIds();
+    }
+
+    @Override
+    public abstract PartialViewContext getWrapped();
+
+    @Override
+    public boolean isAjaxRequest()
+    {
+        return getWrapped().isAjaxRequest();
+    }
+
+    @Override
+    public boolean isExecuteAll()
+    {
+        return getWrapped().isExecuteAll();
+    }
+
+    @Override
+    public boolean isPartialRequest()
+    {
+        return getWrapped().isPartialRequest();
+    }
+
+    @Override
+    public boolean isRenderAll()
+    {
+        return getWrapped().isRenderAll();
+    }
+
+    @Override
+    public void processPartial(PhaseId phaseId)
+    {
+        getWrapped().processPartial(phaseId);
+    }
+
+    @Override
+    public void release()
+    {
+        getWrapped().release();
+    }
+
+    @Override
+    public void setPartialRequest(boolean isPartialRequest)
+    {
+        getWrapped().setPartialRequest(isPartialRequest);
+    }
+
+    @Override
+    public void setRenderAll(boolean renderAll)
+    {
+        getWrapped().setRenderAll(renderAll);
+    }
+}

Modified: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/ResponseStream.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/ResponseStream.java?rev=761981&r1=761980&r2=761981&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/ResponseStream.java (original)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/ResponseStream.java Sat Apr  4 18:44:14 2009
@@ -22,12 +22,11 @@
 
 /**
  * see Javadoc of <a href="http://java.sun.com/javaee/javaserverfaces/1.2/docs/api/index.html">JSF Specification</a>
- *
+ * 
  * @author Manfred Geiler (latest modification by $Author$)
  * @version $Revision$ $Date$
  */
-public abstract class ResponseStream
-        extends OutputStream
+public abstract class ResponseStream extends OutputStream
 {
 
 }

Modified: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/convert/FacesConverter.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/convert/FacesConverter.java?rev=761981&r1=761980&r2=761981&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/convert/FacesConverter.java (original)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/convert/FacesConverter.java Sat Apr  4 18:44:14 2009
@@ -19,6 +19,7 @@
 package javax.faces.convert;
 
 import java.lang.annotation.ElementType;
+import java.lang.annotation.Inherited;
 import java.lang.annotation.Retention;
 import java.lang.annotation.RetentionPolicy;
 import java.lang.annotation.Target;
@@ -31,6 +32,7 @@
  */
 @Retention(RetentionPolicy.RUNTIME)
 @Target(ElementType.TYPE)
+@Inherited
 public @interface FacesConverter
 {
     /**

Added: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/AjaxBehaviorEvent.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/AjaxBehaviorEvent.java?rev=761981&view=auto
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/AjaxBehaviorEvent.java (added)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/AjaxBehaviorEvent.java Sat Apr  4 18:44:14 2009
@@ -0,0 +1,60 @@
+/*
+ * 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 javax.faces.event;
+
+import javax.faces.component.UIComponent;
+import javax.faces.component.behavior.ClientBehavior;
+
+/**
+ * @author Simon Lessard (latest modification by $Author: slessard $)
+ * @version $Revision: 696523 $ $Date: 2009-03-14 16:08:16 -0400 (mer., 17 sept. 2008) $
+ *
+ * @since 2.0
+ */
+public class AjaxBehaviorEvent extends BehaviorEvent
+{
+
+    /**
+     * @param component
+     * @param behavior
+     */
+    public AjaxBehaviorEvent(UIComponent component, ClientBehavior behavior)
+    {
+        super(component, behavior);
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean isAppropriateListener(FacesListener faceslistener)
+    {
+        return faceslistener instanceof AjaxBehaviorListener;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public void processListener(FacesListener faceslistener)
+    {
+        ((AjaxBehaviorListener)faceslistener).processAjaxBehavior(this);
+    }
+
+}

Added: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/AjaxBehaviorListener.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/AjaxBehaviorListener.java?rev=761981&view=auto
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/AjaxBehaviorListener.java (added)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/AjaxBehaviorListener.java Sat Apr  4 18:44:14 2009
@@ -0,0 +1,30 @@
+/*
+ * 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 javax.faces.event;
+
+/**
+ * @author Simon Lessard (latest modification by $Author: slessard $)
+ * @version $Revision: 696523 $ $Date: 2009-03-14 16:07:20 -0400 (mer., 17 sept. 2008) $
+ * 
+ * @since 2.0
+ */
+public interface AjaxBehaviorListener extends BehaviorListener
+{
+    public void processAjaxBehavior(AjaxBehaviorEvent event) throws AbortProcessingException;
+}

Added: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/BehaviorEvent.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/BehaviorEvent.java?rev=761981&view=auto
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/BehaviorEvent.java (added)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/BehaviorEvent.java Sat Apr  4 18:44:14 2009
@@ -0,0 +1,45 @@
+/*
+ * 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 javax.faces.event;
+
+import javax.faces.component.UIComponent;
+import javax.faces.component.behavior.ClientBehavior;
+
+/**
+ * @author Simon Lessard (latest modification by $Author: slessard $)
+ * @version $Revision: 696523 $ $Date: 2009-03-14 15:19:44 -0400 (mer., 17 sept. 2008) $
+ *
+ * @since 2.0
+ */
+public abstract class BehaviorEvent extends FacesEvent
+{
+    private ClientBehavior _behavior;
+    
+    public BehaviorEvent(UIComponent component, ClientBehavior behavior) 
+    {
+        super(component);
+        
+        _behavior = behavior;
+    }
+    
+    public ClientBehavior getBehavior()
+    {
+        return _behavior;
+    }
+}

Added: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/BehaviorListener.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/BehaviorListener.java?rev=761981&view=auto
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/BehaviorListener.java (added)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/BehaviorListener.java Sat Apr  4 18:44:14 2009
@@ -0,0 +1,30 @@
+/*
+ * 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 javax.faces.event;
+
+/**
+ * @author Simon Lessard (latest modification by $Author: slessard $)
+ * @version $Revision: 696523 $ $Date: 2009-03-14 15:31:25 -0400 (mer., 17 sept. 2008) $
+ *
+ * @since 2.0
+ */
+public interface BehaviorListener extends FacesListener
+{
+
+}

Added: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ExceptionQueuedEvent.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ExceptionQueuedEvent.java?rev=761981&view=auto
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ExceptionQueuedEvent.java (added)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ExceptionQueuedEvent.java Sat Apr  4 18:44:14 2009
@@ -0,0 +1,41 @@
+/*
+ * 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 javax.faces.event;
+
+/**
+ * @author Simon Lessard (latest modification by $Author: slessard $)
+ * @version $Revision: 696523 $ $Date: 2009-03-14 16:57:47 -0400 (mer., 17 sept. 2008) $
+ *
+ * @since 2.0
+ */
+public class ExceptionQueuedEvent extends SystemEvent
+{
+    /**
+     * @param source
+     */
+    public ExceptionQueuedEvent(ExceptionQueuedEventContext eventContext)
+    {
+        super(eventContext);
+    }
+    
+    public ExceptionQueuedEventContext getContext()
+    {
+        return (ExceptionQueuedEventContext)getSource();
+    }
+}

Added: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ExceptionQueuedEventContext.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ExceptionQueuedEventContext.java?rev=761981&view=auto
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ExceptionQueuedEventContext.java (added)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ExceptionQueuedEventContext.java Sat Apr  4 18:44:14 2009
@@ -0,0 +1,117 @@
+/*
+ * 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 javax.faces.event;
+
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+
+/**
+ * @author Simon Lessard (latest modification by $Author: slessard $)
+ * @version $Revision: 696523 $ $Date: 2009-03-14 16:58:24 -0400 (mer., 17 sept. 2008) $
+ * 
+ * @since 2.0
+ */
+public class ExceptionQueuedEventContext implements SystemEventListenerHolder
+{
+    // TODO: DEFINE - Spec doesn't define any value for this constant
+    public static final String IN_AFTER_PHASE_KEY = "";
+
+    // TODO: DEFINE - Spec doesn't define any value for this constant
+    public static final String IN_BEFORE_PHASE_KEY = "";
+    
+    private Map<Object, Object> _attributes;
+    private UIComponent _component;
+    private FacesContext _context;
+    private PhaseId _phase;
+    private Throwable _thrown;
+
+    public ExceptionQueuedEventContext(FacesContext context, Throwable thrown)
+    {
+        this(context, thrown, null);
+    }
+
+    public ExceptionQueuedEventContext(FacesContext context, Throwable thrown, UIComponent component)
+    {
+        this(context, thrown, component, null);
+    }
+
+    public ExceptionQueuedEventContext(FacesContext context, Throwable thrown, UIComponent component, PhaseId phaseId)
+    {
+        _context = context;
+        _thrown = thrown;
+        _component = component;
+        _phase = phaseId;
+    }
+    
+    public Map<Object,Object> getAttributes()
+    {
+        if (_attributes == null)
+        {
+            _attributes = new HashMap<Object, Object>();
+        }
+        
+        return _attributes;
+    }
+    
+    public UIComponent getComponent()
+    {
+        return _component;
+    }
+    
+    public FacesContext getContext()
+    {
+        return _context;
+    }
+    
+    public Throwable getException()
+    {
+        return _thrown;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public List<SystemEventListener> getListenersForEventClass(Class<? extends SystemEvent> facesEventClass)
+    {
+        return Collections.singletonList((SystemEventListener)getContext().getExceptionHandler());
+    }
+    
+    public PhaseId getPhaseId()
+    {
+        return _phase;
+    }
+    
+    public boolean inAfterPhase()
+    {
+        // TODO: IMPLEMENT HERE
+        return false;
+    }
+    
+    public boolean inBeforePhase()
+    {
+        // TODO: IMPLEMENT HERE
+        return false;
+    }
+}

Added: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/NamedEvent.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/NamedEvent.java?rev=761981&view=auto
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/NamedEvent.java (added)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/NamedEvent.java Sat Apr  4 18:44:14 2009
@@ -0,0 +1,41 @@
+/*
+ * 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 javax.faces.event;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Inherited;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ * @author Simon Lessard (latest modification by $Author: slessard $)
+ * @version $Revision: 696523 $ $Date: 2009-03-14 19:46:18 -0400 (mer., 17 sept. 2008) $
+ *
+ * @since 2.0
+ */
+@Documented
+@Retention(RetentionPolicy.RUNTIME)
+@Target(ElementType.TYPE)
+@Inherited
+public @interface NamedEvent
+{
+    public String shortName() default "";
+}

Added: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/PostAddToViewEvent.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/PostAddToViewEvent.java?rev=761981&view=auto
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/PostAddToViewEvent.java (added)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/PostAddToViewEvent.java Sat Apr  4 18:44:14 2009
@@ -0,0 +1,47 @@
+/*
+ * 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 javax.faces.event;
+
+import javax.faces.component.UIComponent;
+
+/**
+ * @author Simon Lessard (latest modification by $Author: slessard $)
+ * @version $Revision: 696523 $ $Date: 2009-03-14 19:54:05 -0400 (mer., 17 sept. 2008) $
+ *
+ * @since 2.0
+ */
+public class PostAddToViewEvent extends ComponentSystemEvent
+{
+    /**
+     * @param component
+     */
+    public PostAddToViewEvent(UIComponent component)
+    {
+        super(component);
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean isAppropriateListener(FacesListener listener)
+    {
+        return listener instanceof SystemEventListener;
+    }
+}

Added: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/PostConstructApplicationEvent.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/PostConstructApplicationEvent.java?rev=761981&view=auto
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/PostConstructApplicationEvent.java (added)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/PostConstructApplicationEvent.java Sat Apr  4 18:44:14 2009
@@ -0,0 +1,46 @@
+/*
+ * 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 javax.faces.event;
+
+import javax.faces.application.Application;
+
+/**
+ * @author Simon Lessard (latest modification by $Author: slessard $)
+ * @version $Revision: 696523 $ $Date: 2009-03-14 19:57:35 -0400 (mer., 17 sept. 2008) $
+ * 
+ * @since 2.0
+ */
+public class PostConstructApplicationEvent extends SystemEvent
+{
+    /**
+     * @param application
+     */
+    public PostConstructApplicationEvent(Application application)
+    {
+        super(application);
+    }
+
+    /**
+     * @return the application object tied to this event
+     */
+    public Application getApplication()
+    {
+        return (Application) getSource();
+    }
+}

Added: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/PostConstructViewMapEvent.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/PostConstructViewMapEvent.java?rev=761981&view=auto
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/PostConstructViewMapEvent.java (added)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/PostConstructViewMapEvent.java Sat Apr  4 18:44:14 2009
@@ -0,0 +1,38 @@
+/*
+ * 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 javax.faces.event;
+
+import javax.faces.component.UIViewRoot;
+
+/**
+ * @author Simon Lessard (latest modification by $Author: slessard $)
+ * @version $Revision: 696523 $ $Date: 2009-03-14 20:01:31 -0400 (mer., 17 sept. 2008) $
+ * 
+ * @since 2.0
+ */
+public class PostConstructViewMapEvent extends ComponentSystemEvent
+{
+    /**
+     * @param root
+     */
+    public PostConstructViewMapEvent(UIViewRoot root)
+    {
+        super(root);
+    }
+}

Added: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/PostRestoreStateEvent.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/PostRestoreStateEvent.java?rev=761981&view=auto
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/PostRestoreStateEvent.java (added)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/PostRestoreStateEvent.java Sat Apr  4 18:44:14 2009
@@ -0,0 +1,43 @@
+/*
+ * 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 javax.faces.event;
+
+import javax.faces.component.UIComponent;
+
+/**
+ * @author Simon Lessard (latest modification by $Author: slessard $)
+ * @version $Revision: 696523 $ $Date: 2009-03-14 19:56:16 -0400 (mer., 17 sept. 2008) $
+ * 
+ * @since 2.0
+ */
+public class PostRestoreStateEvent extends ComponentSystemEvent
+{
+    /**
+     * @param component
+     */
+    public PostRestoreStateEvent(UIComponent component)
+    {
+        super(component);
+    }
+
+    public void setComponent(UIComponent newComponent)
+    {
+        super.source = newComponent;
+    }
+}

Added: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/PostValidateEvent.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/PostValidateEvent.java?rev=761981&view=auto
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/PostValidateEvent.java (added)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/PostValidateEvent.java Sat Apr  4 18:44:14 2009
@@ -0,0 +1,38 @@
+/*
+ * 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 javax.faces.event;
+
+import javax.faces.component.UIComponent;
+
+/**
+ * @author Simon Lessard (latest modification by $Author: slessard $)
+ * @version $Revision: 696523 $ $Date: 2009-03-14 20:02:26 -0400 (mer., 17 sept. 2008) $
+ * 
+ * @since 2.0
+ */
+public class PostValidateEvent extends ComponentSystemEvent
+{
+    /**
+     * @param component
+     */
+    public PostValidateEvent(UIComponent component)
+    {
+        super(component);
+    }
+}

Added: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/PreDestroyApplicationEvent.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/PreDestroyApplicationEvent.java?rev=761981&view=auto
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/PreDestroyApplicationEvent.java (added)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/PreDestroyApplicationEvent.java Sat Apr  4 18:44:14 2009
@@ -0,0 +1,46 @@
+/*
+ * 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 javax.faces.event;
+
+import javax.faces.application.Application;
+
+/**
+ * @author Simon Lessard (latest modification by $Author: slessard $)
+ * @version $Revision: 696523 $ $Date: 2009-03-14 19:58:28 -0400 (mer., 17 sept. 2008) $
+ * 
+ * @since 2.0
+ */
+public class PreDestroyApplicationEvent extends SystemEvent
+{
+    /**
+     * @param application
+     */
+    public PreDestroyApplicationEvent(Application application)
+    {
+        super(application);
+    }
+
+    /**
+     * @return the application object tied to this event
+     */
+    public Application getApplication()
+    {
+        return (Application) getSource();
+    }
+}

Added: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/PreDestroyViewMapEvent.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/PreDestroyViewMapEvent.java?rev=761981&view=auto
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/PreDestroyViewMapEvent.java (added)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/PreDestroyViewMapEvent.java Sat Apr  4 18:44:14 2009
@@ -0,0 +1,38 @@
+/*
+ * 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 javax.faces.event;
+
+import javax.faces.component.UIViewRoot;
+
+/**
+ * @author Simon Lessard (latest modification by $Author: slessard $)
+ * @version $Revision: 696523 $ $Date: 2009-03-14 20:03:11 -0400 (mer., 17 sept. 2008) $
+ *
+ * @since 2.0
+ */
+public class PreDestroyViewMapEvent extends ComponentSystemEvent
+{
+    /**
+     * @param root
+     */
+    public PreDestroyViewMapEvent(UIViewRoot root)
+    {
+        super(root);
+    }
+}

Added: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/PreRenderComponentEvent.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/PreRenderComponentEvent.java?rev=761981&view=auto
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/PreRenderComponentEvent.java (added)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/PreRenderComponentEvent.java Sat Apr  4 18:44:14 2009
@@ -0,0 +1,38 @@
+/*
+ * 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 javax.faces.event;
+
+import javax.faces.component.UIComponent;
+
+/**
+ * @author Simon Lessard (latest modification by $Author: slessard $)
+ * @version $Revision: 696523 $ $Date: 2009-03-14 20:00:01 -0400 (mer., 17 sept. 2008) $
+ *
+ * @since 2.0
+ */
+public class PreRenderComponentEvent extends ComponentSystemEvent
+{
+    /**
+     * @param component
+     */
+    public PreRenderComponentEvent(UIComponent component)
+    {
+        super(component);
+    }
+}



Mime
View raw message