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

svn commit: r725963 - in /myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/model: ApplicationScoped.java NoneScoped.java RequestScoped.java SessionScoped.java ViewScoped.java

Author: werpu
Date: Fri Dec 12 03:08:53 2008
New Revision: 725963

URL: http://svn.apache.org/viewvc?rev=725963&view=rev
Log:
https://issues.apache.org/jira/browse/MYFACES-2095

thank you Jan for providing the patch
 

Added:
    myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/model/ApplicationScoped.java   (with props)
    myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/model/NoneScoped.java   (with props)
    myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/model/RequestScoped.java   (with props)
    myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/model/SessionScoped.java   (with props)
    myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/model/ViewScoped.java   (with props)

Added: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/model/ApplicationScoped.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/model/ApplicationScoped.java?rev=725963&view=auto
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/model/ApplicationScoped.java (added)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/model/ApplicationScoped.java Fri Dec 12 03:08:53 2008
@@ -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.model;
+
+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;
+
+
+
+/**
+ *
+ * This annotation on a class is the equivalent to <managed-bean-scope>application<managed-bean-scope>
+ * The runtime must adjust the scope of the bean implementing this class accordingly!
+ *
+ * @author Jan-Kees van Andel
+ * @since 2.0
+ */
+@Target(value=ElementType.TYPE)
+@Retention(value=RetentionPolicy.RUNTIME)
+@Inherited
+public @interface ApplicationScoped
+{
+    
+}
\ No newline at end of file

Propchange: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/model/ApplicationScoped.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/model/ApplicationScoped.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/model/NoneScoped.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/model/NoneScoped.java?rev=725963&view=auto
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/model/NoneScoped.java (added)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/model/NoneScoped.java Fri Dec 12 03:08:53 2008
@@ -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.model;
+
+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;
+
+/**
+ * This annotation on a class is the equivalent to <managed-bean-scope>none<managed-bean-scope>
+ * The runtime must adjust the scope of the bean implementing this class accordingly!
+ *
+ * @author Jan-Kees van Andel
+ * @since 2.0
+ */
+@Target(value=ElementType.TYPE)
+@Retention(value=RetentionPolicy.RUNTIME)
+@Inherited
+public @interface NoneScoped
+{
+
+}
\ No newline at end of file

Propchange: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/model/NoneScoped.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/model/NoneScoped.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/model/RequestScoped.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/model/RequestScoped.java?rev=725963&view=auto
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/model/RequestScoped.java (added)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/model/RequestScoped.java Fri Dec 12 03:08:53 2008
@@ -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.model;
+
+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;
+
+/**
+ * This annotation on a class is the equivalent to <managed-bean-scope>request<managed-bean-scope>
+ * The runtime must adjust the scope of the bean implementing this class accordingly!
+
+ * @author Jan-Kees van Andel
+ * @since 2.0
+ */
+@Target(value=ElementType.TYPE)
+@Retention(value=RetentionPolicy.RUNTIME)
+@Inherited
+public @interface RequestScoped
+{
+
+}
\ No newline at end of file

Propchange: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/model/RequestScoped.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/model/RequestScoped.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/model/SessionScoped.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/model/SessionScoped.java?rev=725963&view=auto
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/model/SessionScoped.java (added)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/model/SessionScoped.java Fri Dec 12 03:08:53 2008
@@ -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.model;
+
+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;
+
+/**
+ * This annotation on a class is the equivalent to <managed-bean-scope>session<managed-bean-scope>
+ * The runtime must adjust the scope of the bean implementing this class accordingly!
+ *
+ * @author Jan-Kees van Andel
+ * @since 2.0
+ */
+@Target(value=ElementType.TYPE)
+@Retention(value=RetentionPolicy.RUNTIME)
+@Inherited
+public @interface SessionScoped
+{
+
+}
\ No newline at end of file

Propchange: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/model/SessionScoped.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/model/SessionScoped.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/model/ViewScoped.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/model/ViewScoped.java?rev=725963&view=auto
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/model/ViewScoped.java (added)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/model/ViewScoped.java Fri Dec 12 03:08:53 2008
@@ -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.model;
+
+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;
+
+/**
+ * This annotation on a class is the equivalent to <managed-bean-scope>view<managed-bean-scope>
+ * The runtime must adjust the scope of the bean implementing this class accordingly!
+ *
+ * @author Jan-Kees van Andel
+ * @since 2.0
+ */
+@Target(value=ElementType.TYPE)
+@Retention(value=RetentionPolicy.RUNTIME)
+@Inherited
+public @interface ViewScoped
+{
+
+}
\ No newline at end of file

Propchange: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/model/ViewScoped.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/model/ViewScoped.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL