hivemind-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hivemind-...@jakarta.apache.org
Subject [Jakarta HiveMind Wiki] Updated: ExtendingSmartTranslator
Date Fri, 16 Jul 2004 11:24:29 GMT
   Date: 2004-07-16T04:24:29
   Editor: KurtHoehn <khoehn@etechstudios.com>
   Wiki: Jakarta HiveMind Wiki
   Page: ExtendingSmartTranslator
   URL: http://wiki.apache.org/jakarta-hivemind/ExtendingSmartTranslator

   no comment

Change Log:

------------------------------------------------------------------------------
@@ -48,6 +48,7 @@
 public class PropertyEditorLoaderImpl implements PropertyEditorLoader
 {
   private List _editors;
+  private ClassResolver _resolver;
     
   public void register()
   {
@@ -55,22 +56,21 @@
     {
       PropertyEditorParameters editors = (PropertyEditorParameters) _editors.get(i);
 
-      try
-      {
-        Class targetType = Class.forName( editors.getTargetType() );
-        Class editorClass = Class.forName( editors.getEditorClass() );
+      Class targetType = _resolver.findClass( editors.getTargetType() );
+      Class editorClass = _resolver.findClass( editors.getEditorClass() );
                 
-        PropertyEditorManager.registerEditor( targetType, editorClass );
-      }
-      catch (ClassNotFoundException e)
-      {
-      }
+      PropertyEditorManager.registerEditor( targetType, editorClass );
     }
   }
 
   public void setPropertyEditors(List editors)
-  { 
-    _editors = editors; 
+  {
+    _editors = editors;
+  }
+    
+  public void setClassResolver( ClassResolver resolver )
+  {
+    _resolver = resolver;
   }
 }
 }}}
@@ -141,7 +141,7 @@
   {
     construct ( class=propertyeditor.PropertyEditorLoaderImpl initialize-method=register
)
     {
-      set-configuration( property=propertyEditors configuration-id=PropertyEditors )
+      set-configuration( property=propertyEditors configuration-id=PropertyEditors class-resolver-property=classResolver
)
     }	                 
   }
 }

---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-cvs-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-cvs-help@jakarta.apache.org


Mime
View raw message