Permalink
Browse files

[#331] re-introducing yet another method to be backward compatible

  • Loading branch information...
1 parent 3f0c8a0 commit 8f2b051c40126986f852219b0c417600558ca1dc @mbknor mbknor committed Sep 26, 2011
Showing with 10 additions and 0 deletions.
  1. +10 −0 framework/src/play/data/binding/Binder.java
@@ -91,6 +91,16 @@ public MethodAndParamInfo(Object objectInstance, Method method, int parameterInd
}
}
+ /**
+ * Deprecated. Use bindBean() instead.
+ */
+ @Deprecated
+ public static Object bind(Object o, String name, Map<String, String[]> params) {
+ RootParamNode parentParamNode = RootParamNode.convert(params);
+ Binder.bindBean(parentParamNode, name, o);
+ return o;
+ }
+
@Deprecated
public static Object bind(String name, Class<?> clazz, Type type, Annotation[] annotations, Map<String, String[]> params) {
RootParamNode parentParamNode = RootParamNode.convert(params);

0 comments on commit 8f2b051

Please sign in to comment.