Package org.springframework.core.io.support

Examples of org.springframework.core.io.support.ResourceArrayPropertyEditor


    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());
    this.defaultEditors.put(Properties.class, new PropertiesEditor());
    this.defaultEditors.put(Resource[].class, new ResourceArrayPropertyEditor());
    this.defaultEditors.put(TimeZone.class, new TimeZoneEditor());
    this.defaultEditors.put(URI.class, new URIEditor());
    this.defaultEditors.put(URL.class, new URLEditor());
    this.defaultEditors.put(UUID.class, new UUIDEditor());
View Full Code Here


    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.put(InputStream.class, new InputStreamEditor());
    this.defaultEditors.put(InputSource.class, new InputSourceEditor());
    this.defaultEditors.put(Locale.class, new LocaleEditor());
    this.defaultEditors.put(Pattern.class, new PatternEditor());
    this.defaultEditors.put(Properties.class, new PropertiesEditor());
    this.defaultEditors.put(Resource[].class, new ResourceArrayPropertyEditor());
    this.defaultEditors.put(TimeZone.class, new TimeZoneEditor());
    this.defaultEditors.put(URI.class, new URIEditor());
    this.defaultEditors.put(URL.class, new URLEditor());
    this.defaultEditors.put(UUID.class, new UUIDEditor());
View Full Code Here

  }

  @Parameters
  public static List<Object[]> data() throws Exception {
    List<Object[]> list = new ArrayList<Object[]>();
    ResourceArrayPropertyEditor editor = new ResourceArrayPropertyEditor();
    editor.setAsText("classpath*:" + ClassUtils.addResourcePathToPackagePath(StepNameTests.class, "*.xml"));
    Resource[] resources = (Resource[]) editor.getValue();
    for (Resource resource : resources) {
      if (resource.getFile().getName().contains("WrongSchema")) {
        continue;
      }
      list.add(new Object[] { resource });
View Full Code Here

  private MultiResourcePartitioner partitioner = new MultiResourcePartitioner();

  @Before
  public void setUp() {
    ResourceArrayPropertyEditor editor = new ResourceArrayPropertyEditor();
    editor.setAsText("classpath:baseContext.xml");
    partitioner.setResources((Resource[]) editor.getValue());
  }
View Full Code Here

    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());
    editors.put(String[].class, new StringArrayPropertyEditor());
    editors.put(URL.class, new URLEditor());

    // Default instances of character, boolean and number editors.
    // Can be overridden by registering custom instances of those as custom editors.
View Full Code Here

    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());
    editors.put(String[].class, new StringArrayPropertyEditor());
    editors.put(URL.class, new URLEditor());

    // Default instances of character, boolean and number editors.
    // Can be overridden by registering custom instances of those as custom editors.
View Full Code Here

TOP

Related Classes of org.springframework.core.io.support.ResourceArrayPropertyEditor

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.