tapestry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jkemn...@apache.org
Subject [1/2] tapestry-5 git commit: deprecate EnumValueEncoderFactory and remove it from the ValueEncoderSource configuration
Date Mon, 07 Sep 2015 14:45:14 GMT
Repository: tapestry-5
Updated Branches:
  refs/heads/master b69ac22f3 -> f5d184866


deprecate EnumValueEncoderFactory and remove it from the ValueEncoderSource configuration


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/e6b4f727
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/e6b4f727
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/e6b4f727

Branch: refs/heads/master
Commit: e6b4f727bcc3d4e124ed275b5f910c5993147eef
Parents: b69ac22
Author: Jochen Kemnade <jochen.kemnade@eddyson.de>
Authored: Mon Sep 7 08:48:29 2015 +0200
Committer: Jochen Kemnade <jochen.kemnade@eddyson.de>
Committed: Mon Sep 7 08:48:29 2015 +0200

----------------------------------------------------------------------
 .../tapestry5/internal/services/EnumValueEncoderFactory.java      | 3 +++
 .../main/java/org/apache/tapestry5/modules/TapestryModule.java    | 1 -
 2 files changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/e6b4f727/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/EnumValueEncoderFactory.java
----------------------------------------------------------------------
diff --git a/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/EnumValueEncoderFactory.java
b/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/EnumValueEncoderFactory.java
index a24fa38..44c9e2c 100644
--- a/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/EnumValueEncoderFactory.java
+++ b/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/EnumValueEncoderFactory.java
@@ -23,7 +23,10 @@ import org.apache.tapestry5.util.EnumValueEncoder;
  * Factory that provides a configured instance of {@link EnumValueEncoder}.
  *
  * @param <E>
+ * @deprecated this class is superseded by {@link TypeCoercedValueEncoderFactory} and 
+ * scheduled to be removed in Tapestry 5.5
  */
+@Deprecated
 public class EnumValueEncoderFactory<E extends Enum<E>> implements ValueEncoderFactory<E>
 {
     private final TypeCoercer typeCoercer;

http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/e6b4f727/tapestry-core/src/main/java/org/apache/tapestry5/modules/TapestryModule.java
----------------------------------------------------------------------
diff --git a/tapestry-core/src/main/java/org/apache/tapestry5/modules/TapestryModule.java
b/tapestry-core/src/main/java/org/apache/tapestry5/modules/TapestryModule.java
index 2c67c04..fdaec67 100644
--- a/tapestry-core/src/main/java/org/apache/tapestry5/modules/TapestryModule.java
+++ b/tapestry-core/src/main/java/org/apache/tapestry5/modules/TapestryModule.java
@@ -1953,7 +1953,6 @@ public final class TapestryModule
     {
         configuration.addInstance(Object.class, TypeCoercedValueEncoderFactory.class);
         configuration.add(String.class, new StringValueEncoder());
-        configuration.addInstance(Enum.class, EnumValueEncoderFactory.class);
     }
 
     /**


Mime
View raw message