geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r1221401 - /geronimo/server/trunk/framework/modules/geronimo-common/src/main/java/org/apache/geronimo/common/propertyeditor/PropertyEditors.java
Date Tue, 20 Dec 2011 18:06:28 GMT
Author: djencks
Date: Tue Dec 20 18:06:28 2011
New Revision: 1221401

URL: http://svn.apache.org/viewvc?rev=1221401&view=rev
Log:
GERONIMO-6240 register some more property editors

Modified:
    geronimo/server/trunk/framework/modules/geronimo-common/src/main/java/org/apache/geronimo/common/propertyeditor/PropertyEditors.java

Modified: geronimo/server/trunk/framework/modules/geronimo-common/src/main/java/org/apache/geronimo/common/propertyeditor/PropertyEditors.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/framework/modules/geronimo-common/src/main/java/org/apache/geronimo/common/propertyeditor/PropertyEditors.java?rev=1221401&r1=1221400&r2=1221401&view=diff
==============================================================================
--- geronimo/server/trunk/framework/modules/geronimo-common/src/main/java/org/apache/geronimo/common/propertyeditor/PropertyEditors.java
(original)
+++ geronimo/server/trunk/framework/modules/geronimo-common/src/main/java/org/apache/geronimo/common/propertyeditor/PropertyEditors.java
Tue Dec 20 18:06:28 2011
@@ -19,13 +19,18 @@ package org.apache.geronimo.common.prope
 
 import java.beans.PropertyEditor;
 import java.beans.PropertyEditorManager;
+import java.io.File;
 import java.net.URI;
 import java.net.URL;
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.List;
+import java.util.Properties;
 
+import org.apache.geronimo.gbean.AbstractName;
+import org.apache.geronimo.gbean.AbstractNameQuery;
 import org.apache.geronimo.kernel.ClassLoading;
+import org.apache.geronimo.kernel.repository.Artifact;
 import org.osgi.framework.Bundle;
 
 /**
@@ -44,8 +49,14 @@ public class PropertyEditors {
         // Append the geronimo propertyeditors package to the global search path.
         appendEditorSearchPath("org.apache.geronimo.common.propertyeditor");
         // and explicitly register the Boolean editor.
+        PropertyEditorManager.registerEditor(AbstractName.class, AbstractNameEditor.class);
+        PropertyEditorManager.registerEditor(AbstractNameQuery.class, AbstractNameQueryEditor.class);
+        PropertyEditorManager.registerEditor(ArrayList.class, ArrayListEditor.class);
+        PropertyEditorManager.registerEditor(Artifact.class, ArtifactEditor.class);
         PropertyEditorManager.registerEditor(Boolean.class, BooleanEditor.class);
+        PropertyEditorManager.registerEditor(File.class, FileEditor.class);
         PropertyEditorManager.registerEditor(Integer.class, IntegerEditor.class);
+        PropertyEditorManager.registerEditor(Properties.class, PropertiesEditor.class);
         PropertyEditorManager.registerEditor(URI.class, URIEditor.class);
         PropertyEditorManager.registerEditor(URL.class, URLEditor.class);
     }



Mime
View raw message