myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gpetra...@apache.org
Subject svn commit: r917158 - in /myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator: core/DefaultProjectStageResolver.java core/ProjectStage.java util/ExtValUtils.java util/JsfUtils.java
Date Sun, 28 Feb 2010 10:26:50 GMT
Author: gpetracek
Date: Sun Feb 28 10:26:50 2010
New Revision: 917158

URL: http://svn.apache.org/viewvc?rev=917158&view=rev
Log:
EXTVAL-71 cleanup

Modified:
    myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator/core/DefaultProjectStageResolver.java
    myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator/core/ProjectStage.java
    myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator/util/ExtValUtils.java
    myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator/util/JsfUtils.java

Modified: myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator/core/DefaultProjectStageResolver.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator/core/DefaultProjectStageResolver.java?rev=917158&r1=917157&r2=917158&view=diff
==============================================================================
--- myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator/core/DefaultProjectStageResolver.java
(original)
+++ myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator/core/DefaultProjectStageResolver.java
Sun Feb 28 10:26:50 2010
@@ -20,7 +20,7 @@
 
 import org.apache.myfaces.extensions.validator.internal.UsageInformation;
 import org.apache.myfaces.extensions.validator.internal.UsageCategory;
-import org.apache.myfaces.extensions.validator.util.JsfUtils;
+import org.apache.myfaces.extensions.validator.util.ExtValUtils;
 
 import javax.faces.context.FacesContext;
 
@@ -58,6 +58,6 @@
 
     private ProjectStageName getDefaultProjectStage()
     {
-        return JsfUtils.getDefaultStageName();
+        return ExtValUtils.getDefaultStageName();
     }
 }
\ No newline at end of file

Modified: myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator/core/ProjectStage.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator/core/ProjectStage.java?rev=917158&r1=917157&r2=917158&view=diff
==============================================================================
--- myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator/core/ProjectStage.java
(original)
+++ myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator/core/ProjectStage.java
Sun Feb 28 10:26:50 2010
@@ -20,7 +20,7 @@
 
 import org.apache.myfaces.extensions.validator.internal.UsageInformation;
 import org.apache.myfaces.extensions.validator.internal.UsageCategory;
-import org.apache.myfaces.extensions.validator.util.JsfUtils;
+import org.apache.myfaces.extensions.validator.util.ExtValUtils;
 
 /**
  * extensible project stage implementation
@@ -40,7 +40,7 @@
 
     public static ProjectStageName createStageName(String name)
     {
-        return JsfUtils.createProjectStageName(name);
+        return ExtValUtils.createProjectStageName(name);
     }
 
     public static ProjectStage createStage(ProjectStageName name)
@@ -63,7 +63,7 @@
         {
             return ((ProjectStageResolver)projectStageResolver).getCurrentProjectStage().getValue();
         }
-        return JsfUtils.getDefaultStageName();
+        return ExtValUtils.getDefaultStageName();
     }
 
     public ProjectStageName getValue()

Modified: myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator/util/ExtValUtils.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator/util/ExtValUtils.java?rev=917158&r1=917157&r2=917158&view=diff
==============================================================================
--- myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator/util/ExtValUtils.java
(original)
+++ myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator/util/ExtValUtils.java
Sun Feb 28 10:26:50 2010
@@ -23,6 +23,7 @@
 import org.apache.myfaces.extensions.validator.core.ExtValContext;
 import org.apache.myfaces.extensions.validator.core.WebXmlParameter;
 import org.apache.myfaces.extensions.validator.core.ValidationModuleKey;
+import org.apache.myfaces.extensions.validator.core.ProjectStageName;
 import org.apache.myfaces.extensions.validator.core.el.AbstractELHelperFactory;
 import org.apache.myfaces.extensions.validator.core.el.ELHelper;
 import org.apache.myfaces.extensions.validator.core.el.ValueBindingExpression;
@@ -941,4 +942,14 @@
     {
         return Boolean.TRUE.equals(ExtValContext.getContext().getGlobalProperty("mode:reset:required"));
     }
+
+    public static ProjectStageName getDefaultStageName()
+    {
+        return createProjectStageName("Production");
+    }
+
+    public static ProjectStageName createProjectStageName(String name)
+    {
+        return DefaultProjectName.createProjectStageName(name);
+    }
 }

Modified: myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator/util/JsfUtils.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator/util/JsfUtils.java?rev=917158&r1=917157&r2=917158&view=diff
==============================================================================
--- myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator/util/JsfUtils.java
(original)
+++ myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator/util/JsfUtils.java
Sun Feb 28 10:26:50 2010
@@ -19,7 +19,6 @@
 package org.apache.myfaces.extensions.validator.util;
 
 import org.apache.myfaces.extensions.validator.core.storage.FacesInformationStorage;
-import org.apache.myfaces.extensions.validator.core.ProjectStageName;
 import org.apache.myfaces.extensions.validator.internal.UsageCategory;
 import org.apache.myfaces.extensions.validator.internal.UsageInformation;
 
@@ -125,14 +124,4 @@
     {
         return ExtValUtils.getStorage(FacesInformationStorage.class, FacesInformationStorage.class.getName());
     }
-
-    public static ProjectStageName getDefaultStageName()
-    {
-        return createProjectStageName("Production");
-    }
-
-    public static ProjectStageName createProjectStageName(String name)
-    {
-        return DefaultProjectName.createProjectStageName(name);
-    }
 }



Mime
View raw message