public class DataSourceCompositeResolver extends DataSourceBaseResolver
Constructor and Description |
---|
DataSourceCompositeResolver(DataSourceResolver[] dataSourceResolvers)
Constructor.
|
DataSourceCompositeResolver(DataSourceResolver[] dataSourceResolvers,
boolean isLenient)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
DataSourceResolver[] |
getDataSourceResolvers()
Get the underlying data source resolvers.
|
DataSource |
resolve(String resourceLocation)
Resolves the given resource location to a
DataSource . |
DataSource |
resolve(String resourceLocation,
boolean isLenient)
Resolves the given resource location to a
DataSource . |
isCid, isFileUrl, isHttpUrl, isLenient
public DataSourceCompositeResolver(DataSourceResolver[] dataSourceResolvers)
dataSourceResolvers
- a list of of resolvers being usedpublic DataSourceCompositeResolver(DataSourceResolver[] dataSourceResolvers, boolean isLenient)
dataSourceResolvers
- a list of of resolvers being usedisLenient
- shall we ignore resources not found or throw an exception?public DataSourceResolver[] getDataSourceResolvers()
public DataSource resolve(String resourceLocation) throws IOException
DataSource
.resourceLocation
- the location of the resourceDataSource
IOException
- the resource was not foundpublic DataSource resolve(String resourceLocation, boolean isLenient) throws IOException
DataSource
.resourceLocation
- the location of the resourceisLenient
- shall we ignore resources not found or complain with an exception?IOException
- resolving the resource failedCopyright © 2001–2017 The Apache Software Foundation. All rights reserved.