/** * Treat the given text as a location pattern and convert it to a Resource array. */ @Override public void setAsText(String text) { String pattern = resolvePath(text).trim(); try { setValue(this.resourcePatternResolver.getResources(pattern)); } catch (IOException ex) { throw new IllegalArgumentException( "Could not resolve resource location pattern [" + pattern + "]: " + ex.getMessage()); } }
/** * Treat the given text as a location pattern and convert it to a Resource array. */ @Override public void setAsText(String text) { String pattern = resolvePath(text).trim(); try { setValue(this.resourcePatternResolver.getResources(pattern)); } catch (IOException ex) { throw new IllegalArgumentException( "Could not resolve resource location pattern [" + pattern + "]: " + ex.getMessage()); } }
String pattern = resolvePath((String) element).trim(); try { Resource[] resources = this.resourcePatternResolver.getResources(pattern);
String pattern = resolvePath((String) element).trim(); try { Resource[] resources = this.resourcePatternResolver.getResources(pattern);
/** * Treat the given text as a location pattern and convert it to a Resource array. */ @Override public void setAsText(String text) { String pattern = resolvePath(text).trim(); try { setValue(this.resourcePatternResolver.getResources(pattern)); } catch (IOException ex) { throw new IllegalArgumentException( "Could not resolve resource location pattern [" + pattern + "]: " + ex.getMessage()); } }
String pattern = resolvePath((String) element).trim(); try { Resource[] resources = this.resourcePatternResolver.getResources(pattern);
public void setAsText(String text) { String patternToUse = resolvePath(text).trim(); try { setValue(this.resourcePatternResolver.getResources(patternToUse)); } catch (IOException ex) { throw new IllegalArgumentException( "Could not resolve resource location pattern [" + patternToUse + "]: " + ex.getMessage()); } }
/** * Treat the given text as a location pattern and convert it to a Resource array. */ @Override public void setAsText(String text) { String pattern = resolvePath(text).trim(); try { setValue(this.resourcePatternResolver.getResources(pattern)); } catch (IOException ex) { throw new IllegalArgumentException( "Could not resolve resource location pattern [" + pattern + "]: " + ex.getMessage()); } }
/** * Treat the given text as a location pattern and convert it to a Resource array. */ @Override public void setAsText(String text) { String pattern = resolvePath(text).trim(); try { setValue(this.resourcePatternResolver.getResources(pattern)); } catch (IOException ex) { throw new IllegalArgumentException( "Could not resolve resource location pattern [" + pattern + "]: " + ex.getMessage()); } }
String pattern = resolvePath((String) element).trim(); try { Resource[] resources = this.resourcePatternResolver.getResources(pattern);
String pattern = resolvePath((String) element).trim(); try { Resource[] resources = this.resourcePatternResolver.getResources(pattern);