ofbiz-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adri...@apache.org
Subject svn commit: r910367 - in /ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion: ConverterCreater.java ConverterCreator.java Converters.java JSONConverters.java MiscConverters.java
Date Tue, 16 Feb 2010 00:10:36 GMT
Author: adrianc
Date: Tue Feb 16 00:10:36 2010
New Revision: 910367

URL: http://svn.apache.org/viewvc?rev=910367&view=rev
Log:
Fixed misspelling in conversion framework - no functional change.

Added:
    ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/ConverterCreator.java
      - copied, changed from r910363, ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/ConverterCreater.java
Removed:
    ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/ConverterCreater.java
Modified:
    ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/Converters.java
    ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/JSONConverters.java
    ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/MiscConverters.java

Copied: ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/ConverterCreator.java (from
r910363, ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/ConverterCreater.java)
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/ConverterCreator.java?p2=ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/ConverterCreator.java&p1=ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/ConverterCreater.java&r1=910363&r2=910367&rev=910367&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/ConverterCreater.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/ConverterCreator.java Tue Feb
16 00:10:36 2010
@@ -18,10 +18,10 @@
  *******************************************************************************/
 package org.ofbiz.base.conversion;
 
-/** ConverterCreater interface. Classes implement this interface to create a
+/** ConverterCreator interface. Classes implement this interface to create a
  * converter that can convert one Java object type to another.
  */
-public interface ConverterCreater {
+public interface ConverterCreator {
     /** Creates a Converter that can convert the <code>sourceClass</code> to
      * the <code>targetClass</code>. Returns <code>null</code> if
this creater
      * doesn't support the class pair.

Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/Converters.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/Converters.java?rev=910367&r1=910366&r2=910367&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/Converters.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/Converters.java Tue Feb 16 00:10:36
2010
@@ -35,7 +35,7 @@
     protected static final String module = Converters.class.getName();
     protected static final String DELIMITER = "->";
     protected static final FastMap<String, Converter<?, ?>> converterMap = FastMap.newInstance();
-    protected static final FastSet<ConverterCreater> creaters = FastSet.newInstance();
+    protected static final FastSet<ConverterCreator> creators = FastSet.newInstance();
     protected static final FastSet<String> noConversions = FastSet.newInstance();
     /** Null converter used when the source and target java object
      * types are the same. The <code>convert</code> method returns the
@@ -46,7 +46,7 @@
 
     static {
         converterMap.setShared(true);
-        registerCreater(new PassThruConverterCreater());
+        registerCreator(new PassThruConverterCreator());
         ClassLoader loader = Thread.currentThread().getContextClassLoader();
         Iterator<ConverterLoader> converterLoaders = ServiceRegistry.lookupProviders(ConverterLoader.class,
loader);
         while (converterLoaders.hasNext()) {
@@ -96,7 +96,7 @@
                     continue OUTER;
                 }
             }
-            for (ConverterCreater value : creaters) {
+            for (ConverterCreator value : creators) {
                 result = createConverter(value, sourceClass, targetClass);
                 if (result != null) {
                     converterMap.putIfAbsent(key, result);
@@ -113,7 +113,7 @@
         } while (true);
     }
 
-    private static <S, SS extends S, T, TT extends T> Converter<SS, TT> createConverter(ConverterCreater
creater, Class<SS> sourceClass, Class<TT> targetClass) {
+    private static <S, SS extends S, T, TT extends T> Converter<SS, TT> createConverter(ConverterCreator
creater, Class<SS> sourceClass, Class<TT> targetClass) {
         return creater.createConverter(sourceClass, targetClass);
     }
 
@@ -155,8 +155,8 @@
      * @param <T> The target object type
      * @param creater The <code>ConverterCreater</code> instance to register
      */
-    public static <S, T> void registerCreater(ConverterCreater creater) {
-        creaters.add(creater);
+    public static <S, T> void registerCreator(ConverterCreator creator) {
+        creators.add(creator);
     }
 
     /** Registers a <code>Converter</code> instance to be used by the
@@ -225,8 +225,8 @@
         }
     }
 
-    protected static class PassThruConverterCreater implements ConverterCreater{
-        protected PassThruConverterCreater() {
+    protected static class PassThruConverterCreator implements ConverterCreator{
+        protected PassThruConverterCreator() {
         }
 
         public <S, T> Converter<S, T> createConverter(Class<S> sourceClass,
Class<T> targetClass) {

Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/JSONConverters.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/JSONConverters.java?rev=910367&r1=910366&r2=910367&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/JSONConverters.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/JSONConverters.java Tue Feb 16
00:10:36 2010
@@ -30,9 +30,9 @@
 
 /** JSON Converter classes. */
 public class JSONConverters implements ConverterLoader {
-    public static class ObjectToJSONResultCreator<R extends JSONResult> implements
ConverterCreater, ConverterLoader {
+    public static class ObjectToJSONResultCreator<R extends JSONResult> implements
ConverterCreator, ConverterLoader {
         public void loadConverters() {
-            Converters.registerCreater(this);
+            Converters.registerCreator(this);
         }
 
         public <S, T> Converter<S, T> createConverter(Class<S> sourceClass,
Class<T> targetClass) {

Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/MiscConverters.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/MiscConverters.java?rev=910367&r1=910366&r2=910367&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/MiscConverters.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/MiscConverters.java Tue Feb 16
00:10:36 2010
@@ -157,9 +157,9 @@
         }
     }
 
-    public static class StringToEnumConverterCreator implements ConverterCreater, ConverterLoader
{
+    public static class StringToEnumConverterCreator implements ConverterCreator, ConverterLoader
{
         public void loadConverters() {
-            Converters.registerCreater(this);
+            Converters.registerCreator(this);
         }
 
         public <S, T> Converter<S, T> createConverter(Class<S> sourceClass,
Class<T> targetClass) {



Mime
View raw message