Package org.springframework.beans.propertyeditors

Examples of org.springframework.beans.propertyeditors.ClassEditor


    this.defaultEditors = new HashMap(64);

    // Simple editors, without parameterization capabilities.
    // The JDK does not contain a default editor for any of these target types.
    this.defaultEditors.put(Charset.class, new CharsetEditor());
    this.defaultEditors.put(Class.class, new ClassEditor());
    this.defaultEditors.put(Class[].class, new ClassArrayEditor());
    this.defaultEditors.put(File.class, new FileEditor());
    this.defaultEditors.put(InputStream.class, new InputStreamEditor());
    this.defaultEditors.put(Locale.class, new LocaleEditor());
    this.defaultEditors.put(Pattern.class, new PatternEditor());
View Full Code Here


    this.defaultEditors = new HashMap<Class<?>, PropertyEditor>(64);

    // Simple editors, without parameterization capabilities.
    // The JDK does not contain a default editor for any of these target types.
    this.defaultEditors.put(Charset.class, new CharsetEditor());
    this.defaultEditors.put(Class.class, new ClassEditor());
    this.defaultEditors.put(Class[].class, new ClassArrayEditor());
    this.defaultEditors.put(Currency.class, new CurrencyEditor());
    this.defaultEditors.put(File.class, new FileEditor());
    this.defaultEditors.put(InputStream.class, new InputStreamEditor());
    this.defaultEditors.put(InputSource.class, new InputSourceEditor());
View Full Code Here

    this.defaultEditors = new HashMap<Class, PropertyEditor>(64);

    // Simple editors, without parameterization capabilities.
    // The JDK does not contain a default editor for any of these target types.
    this.defaultEditors.put(Charset.class, new CharsetEditor());
    this.defaultEditors.put(Class.class, new ClassEditor());
    this.defaultEditors.put(Class[].class, new ClassArrayEditor());
    this.defaultEditors.put(Currency.class, new CurrencyEditor());
    this.defaultEditors.put(File.class, new FileEditor());
    this.defaultEditors.put(InputStream.class, new InputStreamEditor());
    this.defaultEditors.put(Locale.class, new LocaleEditor());
View Full Code Here

    doRegisterEditor(registry, InputSource.class, new InputSourceEditor(baseEditor));
    doRegisterEditor(registry, File.class, new FileEditor(baseEditor));
    doRegisterEditor(registry, URL.class, new URLEditor(baseEditor));

    ClassLoader classLoader = this.resourceLoader.getClassLoader();
    doRegisterEditor(registry, Class.class, new ClassEditor(classLoader));
    doRegisterEditor(registry, URI.class, new URIEditor(classLoader));

    if (this.resourceLoader instanceof ResourcePatternResolver) {
      doRegisterEditor(registry, Resource[].class,
          new ResourceArrayPropertyEditor((ResourcePatternResolver) this.resourceLoader));
View Full Code Here

    this.defaultEditors = new HashMap<Class, PropertyEditor>(64);

    // Simple editors, without parameterization capabilities.
    // The JDK does not contain a default editor for any of these target types.
    this.defaultEditors.put(Charset.class, new CharsetEditor());
    this.defaultEditors.put(Class.class, new ClassEditor());
    this.defaultEditors.put(Class[].class, new ClassArrayEditor());
    this.defaultEditors.put(Currency.class, new CurrencyEditor());
    this.defaultEditors.put(File.class, new FileEditor());
    this.defaultEditors.put(InputStream.class, new InputStreamEditor());
    this.defaultEditors.put(InputSource.class, new InputSourceEditor());
View Full Code Here

            Class type;
            if (entry.getValue() instanceof Class) {
                type = (Class) entry.getValue();
            }
            else {
                ClassEditor editor = new ClassEditor();
                editor.setAsText(String.valueOf(entry.getValue()));
                type = (Class) editor.getValue();
            }
            xstream.alias((String) entry.getKey(), type);
        }
    } 
View Full Code Here

    this.mapperConfiguration = new MapperConfiguration();
    this.mapperConfiguration.setMapperClass(this.getClass());

    PropertyEditors editors = new PropertyEditors();
    editors.put(byte[].class, new ByteArrayPropertyEditor());
    editors.put(Class.class, new ClassEditor());
    editors.put(File.class, new FileEditor());
    editors.put(InputStream.class, new InputStreamEditor());
    editors.put(Locale.class, new LocaleEditor());
    editors.put(Properties.class, new PropertiesEditor());
    editors.put(Resource[].class, new ResourceArrayPropertyEditor());
View Full Code Here

    this.mapperConfiguration = new MapperConfiguration();
    this.mapperConfiguration.setMapperClass(this.getClass());

    PropertyEditors editors = new PropertyEditors();
    editors.put(byte[].class, new ByteArrayPropertyEditor());
    editors.put(Class.class, new ClassEditor());
    editors.put(File.class, new FileEditor());
    editors.put(InputStream.class, new InputStreamEditor());
    editors.put(Locale.class, new LocaleEditor());
    editors.put(Properties.class, new PropertiesEditor());
    editors.put(Resource[].class, new ResourceArrayPropertyEditor());
View Full Code Here

TOP

Related Classes of org.springframework.beans.propertyeditors.ClassEditor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.