myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sless...@apache.org
Subject svn commit: r698768 - in /myfaces/core/branches/2_0_0/api/src/main/java/javax/faces: event/ validator/
Date Wed, 24 Sep 2008 23:03:44 GMT
Author: slessard
Date: Wed Sep 24 16:03:43 2008
New Revision: 698768

URL: http://svn.apache.org/viewvc?rev=698768&view=rev
Log:
Added EDR2's @FacesValidator;
Reformat javax.faces.event.

Added:
    myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/validator/FacesValidator.java
Modified:
    myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ActionListener.java
    myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/AfterAddToParentEvent.java
    myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/BeforeRenderEvent.java
    myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ComponentSystemEvent.java
    myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/FacesListener.java
    myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ListenerFor.java
    myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/MethodExpressionActionListener.java
    myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/MethodExpressionValueChangeListener.java
    myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/PhaseEvent.java
    myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/PhaseListener.java
    myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/SystemEvent.java
    myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/SystemEventListener.java
    myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ValueChangeEvent.java
    myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ValueChangeListener.java
    myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ViewMapCreatedEvent.java
    myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ViewMapDestroyedEvent.java
    myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ViewMapListener.java

Modified: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ActionListener.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ActionListener.java?rev=698768&r1=698767&r2=698768&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ActionListener.java (original)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ActionListener.java Wed
Sep 24 16:03:43 2008
@@ -20,7 +20,7 @@
 
 /**
  * see Javadoc of <a href="http://java.sun.com/javaee/javaserverfaces/1.2/docs/api/index.html">JSF
Specification</a>
- *
+ * 
  * @author Thomas Spiegl (latest modification by $Author$)
  * @version $Revision$ $Date$
  */

Modified: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/AfterAddToParentEvent.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/AfterAddToParentEvent.java?rev=698768&r1=698767&r2=698768&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/AfterAddToParentEvent.java
(original)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/AfterAddToParentEvent.java
Wed Sep 24 16:03:43 2008
@@ -23,14 +23,17 @@
 /**
  * see Javadoc /javax/faces/event/AfterAddToParentEvent.html
  */
-public class AfterAddToParentEvent extends ComponentSystemEvent {
+public class AfterAddToParentEvent extends ComponentSystemEvent
+{
 
-    public AfterAddToParentEvent(UIComponent component) {
+    public AfterAddToParentEvent(UIComponent component)
+    {
         super(component);
     }
 
-    public boolean isAppropriateListener(FacesListener listener) {
-        //FIXME
+    public boolean isAppropriateListener(FacesListener listener)
+    {
+        // FIXME
         throw new NullPointerException("FIXME");
     }
 }

Modified: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/BeforeRenderEvent.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/BeforeRenderEvent.java?rev=698768&r1=698767&r2=698768&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/BeforeRenderEvent.java
(original)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/BeforeRenderEvent.java
Wed Sep 24 16:03:43 2008
@@ -23,9 +23,11 @@
 /**
  * see Javadoc /javax/faces/event/BeforeRenderEvent.html
  */
-public class BeforeRenderEvent extends ComponentSystemEvent {
+public class BeforeRenderEvent extends ComponentSystemEvent
+{
 
-    public BeforeRenderEvent(UIComponent component) {
+    public BeforeRenderEvent(UIComponent component)
+    {
         super(component);
     }
 

Modified: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ComponentSystemEvent.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ComponentSystemEvent.java?rev=698768&r1=698767&r2=698768&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ComponentSystemEvent.java
(original)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ComponentSystemEvent.java
Wed Sep 24 16:03:43 2008
@@ -29,9 +29,9 @@
     {
         super(component);
     }
-    
+
     public UIComponent getComponent()
     {
-        return (UIComponent)getSource();
+        return (UIComponent) getSource();
     }
 }

Modified: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/FacesListener.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/FacesListener.java?rev=698768&r1=698767&r2=698768&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/FacesListener.java (original)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/FacesListener.java Wed
Sep 24 16:03:43 2008
@@ -22,11 +22,10 @@
 
 /**
  * see Javadoc of <a href="http://java.sun.com/javaee/javaserverfaces/1.2/docs/api/index.html">JSF
Specification</a>
- *
+ * 
  * @author Thomas Spiegl (latest modification by $Author$)
  * @version $Revision$ $Date$
  */
-public interface FacesListener
-        extends EventListener
+public interface FacesListener extends EventListener
 {
 }

Modified: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ListenerFor.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ListenerFor.java?rev=698768&r1=698767&r2=698768&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ListenerFor.java (original)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ListenerFor.java Wed Sep
24 16:03:43 2008
@@ -31,7 +31,7 @@
 public @interface ListenerFor
 {
     public Class<? extends SystemEvent> systemEventClass();
-    
+
     // FIXME: Spec is not Java 5 compliant, specified signature is Class sourceClass()
     public Class<?> sourceClass();
 }

Modified: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/MethodExpressionActionListener.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/MethodExpressionActionListener.java?rev=698768&r1=698767&r2=698768&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/MethodExpressionActionListener.java
(original)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/MethodExpressionActionListener.java
Wed Sep 24 16:03:43 2008
@@ -26,50 +26,62 @@
 
 /**
  * See Javadoc of <a href="http://java.sun.com/javaee/javaserverfaces/1.2/docs/api/index.html">JSF
Specification</a>
- *
+ * 
  * @author Stan Silvert
  */
-public class MethodExpressionActionListener implements ActionListener, StateHolder {
-    
+public class MethodExpressionActionListener implements ActionListener, StateHolder
+{
+
     private MethodExpression methodExpression;
-    
+
     private boolean isTransient = false;
-    
+
     /** Creates a new instance of MethodExpressionActionListener */
-    public MethodExpressionActionListener() {
+    public MethodExpressionActionListener()
+    {
     }
-    
-    public MethodExpressionActionListener(MethodExpression methodExpression) {
+
+    public MethodExpressionActionListener(MethodExpression methodExpression)
+    {
         this.methodExpression = methodExpression;
     }
 
-    public void processAction(ActionEvent actionEvent) throws AbortProcessingException {
-        try {
-            Object[] params = new Object[]{actionEvent};
+    public void processAction(ActionEvent actionEvent) throws AbortProcessingException
+    {
+        try
+        {
+            Object[] params = new Object[] { actionEvent };
             methodExpression.invoke(elContext(), params);
-        } catch (Exception e) {
+        }
+        catch (Exception e)
+        {
             throw new AbortProcessingException(e);
         }
     }
-    
-    private ELContext elContext() {
+
+    private ELContext elContext()
+    {
         return FacesContext.getCurrentInstance().getELContext();
     }
-    
-    public void restoreState(FacesContext context, Object state) {
-        methodExpression = (MethodExpression)state;
+
+    public void restoreState(FacesContext context, Object state)
+    {
+        methodExpression = (MethodExpression) state;
     }
 
-    public Object saveState(FacesContext context) {
+    public Object saveState(FacesContext context)
+    {
         return methodExpression;
     }
 
-    public void setTransient(boolean newTransientValue) {
+    public void setTransient(boolean newTransientValue)
+    {
         isTransient = newTransientValue;
     }
 
-    public boolean isTransient() {
+    public boolean isTransient()
+    {
         return isTransient;
     }
-    
+
 }

Modified: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/MethodExpressionValueChangeListener.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/MethodExpressionValueChangeListener.java?rev=698768&r1=698767&r2=698768&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/MethodExpressionValueChangeListener.java
(original)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/MethodExpressionValueChangeListener.java
Wed Sep 24 16:03:43 2008
@@ -26,49 +26,61 @@
 
 /**
  * See Javadoc of <a href="http://java.sun.com/javaee/javaserverfaces/1.2/docs/api/index.html">JSF
Specification</a>
- *
+ * 
  * @author Stan Silvert
  */
-public class MethodExpressionValueChangeListener implements ValueChangeListener, StateHolder
{
-    
+public class MethodExpressionValueChangeListener implements ValueChangeListener, StateHolder
+{
+
     private MethodExpression methodExpression;
-    
+
     private boolean isTransient = false;
-    
+
     /** Creates a new instance of MethodExpressionValueChangeListener */
-    public MethodExpressionValueChangeListener() {
+    public MethodExpressionValueChangeListener()
+    {
     }
-    
-    public MethodExpressionValueChangeListener(MethodExpression methodExpression) {
+
+    public MethodExpressionValueChangeListener(MethodExpression methodExpression)
+    {
         this.methodExpression = methodExpression;
     }
-    
-    public void processValueChange(ValueChangeEvent event) throws AbortProcessingException
{
-        try {
-            Object[] params = new Object[]{event};
+
+    public void processValueChange(ValueChangeEvent event) throws AbortProcessingException
+    {
+        try
+        {
+            Object[] params = new Object[] { event };
             methodExpression.invoke(elContext(), params);
-        } catch (Exception e) {
+        }
+        catch (Exception e)
+        {
             throw new AbortProcessingException(e);
         }
     }
-    
-    private ELContext elContext() {
+
+    private ELContext elContext()
+    {
         return FacesContext.getCurrentInstance().getELContext();
     }
-    
-    public void restoreState(FacesContext context, Object state) {
-        methodExpression = (MethodExpression)state;
+
+    public void restoreState(FacesContext context, Object state)
+    {
+        methodExpression = (MethodExpression) state;
     }
 
-    public Object saveState(FacesContext context) {
+    public Object saveState(FacesContext context)
+    {
         return methodExpression;
     }
 
-    public void setTransient(boolean newTransientValue) {
+    public void setTransient(boolean newTransientValue)
+    {
         isTransient = newTransientValue;
     }
 
-    public boolean isTransient() {
+    public boolean isTransient()
+    {
         return isTransient;
     }
 

Modified: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/PhaseEvent.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/PhaseEvent.java?rev=698768&r1=698767&r2=698768&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/PhaseEvent.java (original)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/PhaseEvent.java Wed Sep
24 16:03:43 2008
@@ -24,7 +24,7 @@
 
 /**
  * see Javadoc of <a href="http://java.sun.com/javaee/javaserverfaces/1.2/docs/api/index.html">JSF
Specification</a>
- *
+ * 
  * @author Thomas Spiegl (latest modification by $Author$)
  * @version $Revision$ $Date$
  */
@@ -39,9 +39,12 @@
     public PhaseEvent(FacesContext facesContext, PhaseId phaseId, Lifecycle lifecycle)
     {
         super(lifecycle);
-        if (facesContext == null) throw new NullPointerException("facesContext");
-        if (phaseId == null) throw new NullPointerException("phaseId");
-        if (lifecycle == null) throw new NullPointerException("lifecycle");
+        if (facesContext == null)
+            throw new NullPointerException("facesContext");
+        if (phaseId == null)
+            throw new NullPointerException("phaseId");
+        if (lifecycle == null)
+            throw new NullPointerException("lifecycle");
 
         _facesContext = facesContext;
         _phaseId = phaseId;
@@ -102,7 +105,5 @@
             return false;
         return true;
     }
-    
 
-    
 }

Modified: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/PhaseListener.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/PhaseListener.java?rev=698768&r1=698767&r2=698768&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/PhaseListener.java (original)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/PhaseListener.java Wed
Sep 24 16:03:43 2008
@@ -20,7 +20,7 @@
 
 /**
  * see Javadoc of <a href="http://java.sun.com/javaee/javaserverfaces/1.2/docs/api/index.html">JSF
Specification</a>
- *
+ * 
  * @author Thomas Spiegl (latest modification by $Author$)
  * @version $Revision$ $Date$
  */

Modified: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/SystemEvent.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/SystemEvent.java?rev=698768&r1=698767&r2=698768&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/SystemEvent.java (original)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/SystemEvent.java Wed Sep
24 16:03:43 2008
@@ -29,14 +29,14 @@
     {
         super(source);
     }
-    
+
     public boolean isAppropriateListener(FacesListener listener)
     {
         return listener instanceof SystemEventListener;
     }
-    
+
     public void processListener(FacesListener listener)
     {
-        ((SystemEventListener)listener).processEvent(this);
+        ((SystemEventListener) listener).processEvent(this);
     }
 }

Modified: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/SystemEventListener.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/SystemEventListener.java?rev=698768&r1=698767&r2=698768&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/SystemEventListener.java
(original)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/SystemEventListener.java
Wed Sep 24 16:03:43 2008
@@ -24,6 +24,6 @@
 public interface SystemEventListener extends FacesListener
 {
     public boolean isListenerForSource(Object source);
-    
+
     public void processEvent(SystemEvent event);
 }

Modified: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ValueChangeEvent.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ValueChangeEvent.java?rev=698768&r1=698767&r2=698768&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ValueChangeEvent.java
(original)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ValueChangeEvent.java
Wed Sep 24 16:03:43 2008
@@ -22,11 +22,12 @@
 
 /**
  * see Javadoc of <a href="http://java.sun.com/javaee/javaserverfaces/1.2/docs/api/index.html">JSF
Specification</a>
- *
+ * 
  * @author Thomas Spiegl (latest modification by $Author$)
  * @version $Revision$ $Date$
  */
-public class ValueChangeEvent extends FacesEvent {
+public class ValueChangeEvent extends FacesEvent
+{
     private static final long serialVersionUID = -2490528664421353795L;
     // FIELDS
     private Object _oldValue;
@@ -36,7 +37,8 @@
     public ValueChangeEvent(UIComponent uiComponent, Object oldValue, Object newValue)
     {
         super(uiComponent);
-        if (uiComponent == null) throw new IllegalArgumentException("uiComponent");
+        if (uiComponent == null)
+            throw new IllegalArgumentException("uiComponent");
         _oldValue = oldValue;
         _newValue = newValue;
     }
@@ -59,6 +61,6 @@
 
     public void processListener(FacesListener facesListeners)
     {
-        ((ValueChangeListener)facesListeners).processValueChange(this);
+        ((ValueChangeListener) facesListeners).processValueChange(this);
     }
 }

Modified: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ValueChangeListener.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ValueChangeListener.java?rev=698768&r1=698767&r2=698768&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ValueChangeListener.java
(original)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ValueChangeListener.java
Wed Sep 24 16:03:43 2008
@@ -20,12 +20,11 @@
 
 /**
  * see Javadoc of <a href="http://java.sun.com/javaee/javaserverfaces/1.2/docs/api/index.html">JSF
Specification</a>
- *
+ * 
  * @author Thomas Spiegl (latest modification by $Author$)
  * @version $Revision$ $Date$
  */
 public interface ValueChangeListener extends FacesListener
 {
-    public void processValueChange(javax.faces.event.ValueChangeEvent event)
-        throws AbortProcessingException;
+    public void processValueChange(javax.faces.event.ValueChangeEvent event) throws AbortProcessingException;
 }

Modified: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ViewMapCreatedEvent.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ViewMapCreatedEvent.java?rev=698768&r1=698767&r2=698768&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ViewMapCreatedEvent.java
(original)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ViewMapCreatedEvent.java
Wed Sep 24 16:03:43 2008
@@ -23,9 +23,11 @@
 /**
  * see Javadoc /javax/faces/event/ViewMapCreatedEvent .html
  */
-public class ViewMapCreatedEvent extends ComponentSystemEvent {
+public class ViewMapCreatedEvent extends ComponentSystemEvent
+{
 
-    public ViewMapCreatedEvent(UIViewRoot component) {
+    public ViewMapCreatedEvent(UIViewRoot component)
+    {
         super(component);
     }
 

Modified: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ViewMapDestroyedEvent.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ViewMapDestroyedEvent.java?rev=698768&r1=698767&r2=698768&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ViewMapDestroyedEvent.java
(original)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ViewMapDestroyedEvent.java
Wed Sep 24 16:03:43 2008
@@ -23,9 +23,11 @@
 /**
  * see Javadoc /javax/faces/event/ViewMapCreatedEvent .html
  */
-public class ViewMapDestroyedEvent extends ComponentSystemEvent {
+public class ViewMapDestroyedEvent extends ComponentSystemEvent
+{
 
-    public ViewMapDestroyedEvent(UIViewRoot component) {
+    public ViewMapDestroyedEvent(UIViewRoot component)
+    {
         super(component);
     }
 

Modified: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ViewMapListener.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ViewMapListener.java?rev=698768&r1=698767&r2=698768&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ViewMapListener.java (original)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ViewMapListener.java Wed
Sep 24 16:03:43 2008
@@ -21,5 +21,6 @@
 /**
  * see Javadoc /javax/faces/event/ViewMapListener.html
  */
-public interface ViewMapListener extends SystemEventListener {
+public interface ViewMapListener extends SystemEventListener
+{
 }

Added: 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=698768&view=auto
==============================================================================
--- 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/validator/FacesValidator.java
Wed Sep 24 16:03:43 2008
@@ -0,0 +1,39 @@
+/*
+ * 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.validator;
+
+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: slessard $)
+ * @version $Revision: 696523 $ $Date: 2008-09-24 18:59:05 -0400 (mer., 17 sept. 2008) $
+ */
+@Retention(RetentionPolicy.RUNTIME)
+@Target(ElementType.TYPE)
+public @interface FacesValidator
+{
+    /**
+     * The value of this annotation attribute is taken to be the <i>validator-id</i>
with which instances of this class
+     * of component can be instantiated by calling {@link Application#createValidator(java.lang.String)}.
+     */
+    public String value();
+}



Mime
View raw message