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.
|
javax.activation.DataSource |
resolve(java.lang.String resourceLocation)
Resolves the given resource location to a
DataSource . |
javax.activation.DataSource |
resolve(java.lang.String resourceLocation,
boolean isLenient)
Resolves the given resource location to a
DataSource . |
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 javax.activation.DataSource resolve(java.lang.String resourceLocation) throws java.io.IOException
DataSource
.resourceLocation
- the location of the resourceDataSource
java.io.IOException
- the resource was not foundpublic javax.activation.DataSource resolve(java.lang.String resourceLocation, boolean isLenient) throws java.io.IOException
DataSource
.resourceLocation
- the location of the resourceisLenient
- shall we ignore resources not found or complain with an exception?java.io.IOException
- resolving the resource failed"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"