You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by sl...@apache.org on 2008/12/03 00:07:03 UTC

svn commit: r722660 - /myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/FacesWrapper.java

Author: slessard
Date: Tue Dec  2 15:07:03 2008
New Revision: 722660

URL: http://svn.apache.org/viewvc?rev=722660&view=rev
Log:
Added FacesWrapper

Added:
    myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/FacesWrapper.java

Added: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/FacesWrapper.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/FacesWrapper.java?rev=722660&view=auto
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/FacesWrapper.java (added)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/FacesWrapper.java Tue Dec  2 15:07:03 2008
@@ -0,0 +1,37 @@
+/*
+ * 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;
+
+/**
+ * Any wrapper class in JSF that must provide access to the object it wraps must implement this interface.
+ * 
+ * @author Simon Lessard (latest modification by $Author: slessard $)
+ * @version $Revision: 696523 $ $Date: 2008-12-02 18:05:23 -0400 (mer., 17 sept. 2008) $
+ *
+ * @since 2.0
+ */
+public interface FacesWrapper<T>
+{
+    /**
+     * A class that implements this interface uses this method to return an instance of the class being wrapped.
+     * 
+     * @return the instance of the class being wrapped
+     */
+    public T getWrapped();
+}