Date: 2004-07-16T04:24:29
Editor: KurtHoehn <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]