myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bom...@apache.org
Subject svn commit: r512974 - in /myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/context: FacesContextFactoryWrapper.java FacesContextWrapper.java
Date Wed, 28 Feb 2007 21:14:42 GMT
Author: bommel
Date: Wed Feb 28 13:14:42 2007
New Revision: 512974

URL: http://svn.apache.org/viewvc?view=rev&rev=512974
Log:
added FacesContextWrapper
added FacesContextFactoryWrapper

Added:
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/context/FacesContextFactoryWrapper.java
Modified:
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/context/FacesContextWrapper.java

Added: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/context/FacesContextFactoryWrapper.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/context/FacesContextFactoryWrapper.java?view=auto&rev=512974
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/context/FacesContextFactoryWrapper.java
(added)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/context/FacesContextFactoryWrapper.java
Wed Feb 28 13:14:42 2007
@@ -0,0 +1,44 @@
+package org.apache.myfaces.tobago.context;
+
+/*
+ * 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.
+ */
+
+import javax.faces.context.FacesContextFactory;
+import javax.faces.context.FacesContext;
+import javax.faces.lifecycle.Lifecycle;
+import javax.faces.FacesException;
+
+/*
+ * Date: Feb 28, 2007
+ * Time: 10:09:52 PM
+ */
+public class FacesContextFactoryWrapper extends FacesContextFactory {
+  protected FacesContextFactory facesContextFactory;
+
+  public FacesContextFactoryWrapper(FacesContextFactory facesContextFactory) {
+    this.facesContextFactory = facesContextFactory;
+  }
+
+  public FacesContext getFacesContext(Object context, Object request, Object response, Lifecycle
lifecycle)
+      throws FacesException {
+   return facesContextFactory.getFacesContext(context, request, response, lifecycle);
+  }
+
+  public FacesContextFactory getFacesContextFactory() {
+    return facesContextFactory;
+  }
+}

Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/context/FacesContextWrapper.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/context/FacesContextWrapper.java?view=diff&rev=512974&r1=512973&r2=512974
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/context/FacesContextWrapper.java
(original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/context/FacesContextWrapper.java
Wed Feb 28 13:14:42 2007
@@ -32,10 +32,14 @@
  * Time: 8:01:37 PM
  */
 public class FacesContextWrapper extends javax.faces.context.FacesContext {
-  private FacesContext context;
+  protected FacesContext context;
 
   public FacesContextWrapper(FacesContext context) {
     this.context = context;
+  }
+
+  public FacesContext getContext() {
+    return context;
   }
 
   public Application getApplication() {



Mime
View raw message