List of usage examples for org.springframework.beans.propertyeditors ClassArrayEditor ClassArrayEditor
public ClassArrayEditor(@Nullable ClassLoader classLoader)
From source file:org.eclipse.gemini.blueprint.context.support.OsgiPropertyEditorRegistrar.java
public void registerCustomEditors(PropertyEditorRegistry registry) { for (Map.Entry<Class<?>, Class<? extends PropertyEditor>> entry : editors.entrySet()) { Class<?> type = entry.getKey(); PropertyEditor editorInstance; editorInstance = BeanUtils.instantiate(entry.getValue()); registry.registerCustomEditor(type, editorInstance); }/*from www . j a va2 s .co m*/ // register non-externalized types registry.registerCustomEditor(Dictionary.class, new CustomMapEditor(Hashtable.class)); registry.registerCustomEditor(Properties.class, new PropertiesEditor()); registry.registerCustomEditor(Class.class, new ClassEditor(userClassLoader)); registry.registerCustomEditor(Class[].class, new ClassArrayEditor(userClassLoader)); }