You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2009/04/28 03:12:31 UTC

svn commit: r769217 - in /myfaces/core/branches/2_0_0/api/src/main/java/javax/faces: bean/ render/ validator/

Author: lu4242
Date: Tue Apr 28 01:12:30 2009
New Revision: 769217

URL: http://svn.apache.org/viewvc?rev=769217&view=rev
Log:
MYFACES-2140 Add annotation processing logic (update annotation definitions based on javadoc spec 2009-03-27

Added:
    myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/bean/
    myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/bean/ApplicationScoped.java   (with props)
    myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/bean/CustomScoped.java   (with props)
    myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/bean/ManagedBean.java   (with props)
    myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/bean/ManagedProperty.java   (with props)
    myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/bean/NoneScoped.java   (with props)
    myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/bean/RequestScoped.java   (with props)
    myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/bean/SessionScoped.java   (with props)
    myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/bean/ViewScoped.java   (with props)
Modified:
    myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/render/FacesRenderKit.java
    myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/validator/FacesValidator.java

Added: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/bean/ApplicationScoped.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/bean/ApplicationScoped.java?rev=769217&view=auto
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/bean/ApplicationScoped.java (added)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/bean/ApplicationScoped.java Tue Apr 28 01:12:30 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.bean;
+
+/**
+ * 
+ * @since 2.0
+ * @author Leonardo Uribe (latest modification by $Author$)
+ * @version $Revision$ $Date$
+ */
+public @interface ApplicationScoped
+{
+
+}

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

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

Added: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/bean/CustomScoped.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/bean/CustomScoped.java?rev=769217&view=auto
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/bean/CustomScoped.java (added)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/bean/CustomScoped.java Tue Apr 28 01:12:30 2009
@@ -0,0 +1,29 @@
+/*
+ * 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.bean;
+
+/**
+ * @since 2.0
+ * @author Leonardo Uribe (latest modification by $Author$)
+ * @version $Revision$ $Date$
+ */
+public @interface CustomScoped
+{
+    public String value() default "";
+}

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

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

Added: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/bean/ManagedBean.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/bean/ManagedBean.java?rev=769217&view=auto
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/bean/ManagedBean.java (added)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/bean/ManagedBean.java Tue Apr 28 01:12:30 2009
@@ -0,0 +1,48 @@
+/*
+ * 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.bean;
+
+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$)
+ * @version $Revision$ $Date$
+ *
+ * @since 2.0
+ */
+@Retention(RetentionPolicy.RUNTIME)
+@Target(ElementType.TYPE)
+@Inherited
+public @interface ManagedBean
+{
+    /**
+     * Taken to be the value of the eager attribute of the managed-bean.
+     */
+    public boolean eager() default false;
+
+    /**
+     * Taken to be the managed-bean-name. See class documentation for details.
+     */
+    public String name() default "";
+
+}

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

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

Added: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/bean/ManagedProperty.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/bean/ManagedProperty.java?rev=769217&view=auto
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/bean/ManagedProperty.java (added)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/bean/ManagedProperty.java Tue Apr 28 01:12:30 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.bean;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ * @author Simon Lessard (latest modification by $Author$)
+ * @version $Revision$ $Date$
+ * 
+ * @since 2.0
+ */
+@Retention(RetentionPolicy.RUNTIME)
+@Target(ElementType.FIELD)
+public @interface ManagedProperty
+{
+    /**
+     * Taken to be the managed-property-name.
+     */
+    public String name() default "";
+    
+    /**
+     * Taken to be the value that is injected into the field.
+     */
+    public String value();
+}

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

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

Added: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/bean/NoneScoped.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/bean/NoneScoped.java?rev=769217&view=auto
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/bean/NoneScoped.java (added)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/bean/NoneScoped.java Tue Apr 28 01:12:30 2009
@@ -0,0 +1,29 @@
+/*
+ * 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.bean;
+
+/**
+ * @since 2.0
+ * @author Leonardo Uribe (latest modification by $Author$)
+ * @version $Revision$ $Date$
+ */
+public @interface NoneScoped
+{
+
+}

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

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

Added: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/bean/RequestScoped.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/bean/RequestScoped.java?rev=769217&view=auto
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/bean/RequestScoped.java (added)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/bean/RequestScoped.java Tue Apr 28 01:12:30 2009
@@ -0,0 +1,29 @@
+/*
+ * 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.bean;
+
+/**
+ * @since 2.0
+ * @author Leonardo Uribe (latest modification by $Author$)
+ * @version $Revision$ $Date$
+ */
+public @interface RequestScoped
+{
+
+}

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

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

Added: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/bean/SessionScoped.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/bean/SessionScoped.java?rev=769217&view=auto
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/bean/SessionScoped.java (added)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/bean/SessionScoped.java Tue Apr 28 01:12:30 2009
@@ -0,0 +1,29 @@
+/*
+ * 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.bean;
+
+/**
+ * @since 2.0
+ * @author Leonardo Uribe (latest modification by $Author$)
+ * @version $Revision$ $Date$
+ */
+public @interface SessionScoped
+{
+
+}

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

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

Added: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/bean/ViewScoped.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/bean/ViewScoped.java?rev=769217&view=auto
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/bean/ViewScoped.java (added)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/bean/ViewScoped.java Tue Apr 28 01:12:30 2009
@@ -0,0 +1,29 @@
+/*
+ * 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.bean;
+
+/**
+ * @since 2.0
+ * @author Leonardo Uribe (latest modification by $Author$)
+ * @version $Revision$ $Date$
+ */
+public @interface ViewScoped
+{
+
+}

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

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

Modified: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/render/FacesRenderKit.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/render/FacesRenderKit.java?rev=769217&r1=769216&r2=769217&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/render/FacesRenderKit.java (original)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/render/FacesRenderKit.java Tue Apr 28 01:12:30 2009
@@ -19,6 +19,8 @@
 package javax.faces.render;
 
 /**
+ * TODO: REMOVE - No longer existing in latst spec 2009-03-27 -= Leonardo Uribe =-
+ * 
  * @author Simon Lessard (latest modification by $Author: slessard $)
  * @version $Revision: 696523 $ $Date: 2008-09-24 18:56:27 -0400 (mer., 17 sept. 2008) $
  */

Modified: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/validator/FacesValidator.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/validator/FacesValidator.java?rev=769217&r1=769216&r2=769217&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/validator/FacesValidator.java (original)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/validator/FacesValidator.java Tue Apr 28 01:12:30 2009
@@ -40,4 +40,10 @@
      * of component can be instantiated by calling {@link Application#createValidator(java.lang.String)}.
      */
     public String value();
+    
+    /**
+     * If it is true, the validator is added to default list calling  
+     * {@link javax.faces.application.Application#addDefaultValidatorId(java.lang.String)}.</ 
+     */
+    boolean isDefault() default false;
 }