You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by jo...@apache.org on 2011/09/10 01:00:35 UTC
svn commit: r1167386 -
/tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/services/TapestryIOCModule.java
Author: joshcanfield
Date: Fri Sep 9 23:00:35 2011
New Revision: 1167386
URL: http://svn.apache.org/viewvc?rev=1167386&view=rev
Log:
TAP5-1621 - Fixed Object[] -> Boolean
Modified:
tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/services/TapestryIOCModule.java
Modified: tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/services/TapestryIOCModule.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/services/TapestryIOCModule.java?rev=1167386&r1=1167385&r2=1167386&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/services/TapestryIOCModule.java (original)
+++ tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/services/TapestryIOCModule.java Fri Sep 9 23:00:35 2011
@@ -345,6 +345,14 @@ public final class TapestryIOCModule
}
});
+ add(configuration, Object[].class, Boolean.class, new Coercion<Object[], Boolean>()
+ {
+ public Boolean coerce(Object[] input)
+ {
+ return input != null && input.length > 0;
+ }
+ });
+
add(configuration, Float.class, Double.class, new Coercion<Float, Double>()
{
public Double coerce(Float input)