Revision: 659
          http://stripes.svn.sourceforge.net/stripes/?rev=659&view=rev
Author:   mongus
Date:     2007-12-10 17:03:44 -0800 (Mon, 10 Dec 2007)

Log Message:
-----------
just made the add method public to enable adding new TypeConverters without 
replacing DefaultTypeConverterFactory

Modified Paths:
--------------
    
trunk/stripes/src/net/sourceforge/stripes/validation/DefaultTypeConverterFactory.java

Modified: 
trunk/stripes/src/net/sourceforge/stripes/validation/DefaultTypeConverterFactory.java
===================================================================
--- 
trunk/stripes/src/net/sourceforge/stripes/validation/DefaultTypeConverterFactory.java
       2007-12-10 16:43:30 UTC (rev 658)
+++ 
trunk/stripes/src/net/sourceforge/stripes/validation/DefaultTypeConverterFactory.java
       2007-12-11 01:03:44 UTC (rev 659)
@@ -91,10 +91,10 @@
      * @param targetType the type for which the converter will handle 
conversions
      * @param converterClass the implementation class that will handle the 
conversions
      */
-    protected void add(Class<?> targetType, Class<? extends TypeConverter<?>> 
converterClass) {
+    public void add(Class<?> targetType, Class<? extends TypeConverter<?>> 
converterClass) {
         this.converters.put(targetType, converterClass);
     }
-
+    
     /**
      * Gets the applicable type converter for the class passed in.  This is 
based on the default
      * set of type converters which are stored in a Map on this class.  Enums 
are a special case,


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
SF.Net email is sponsored by: 
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to