public class DataSourceClassPathResolver extends DataSourceBaseResolver
DataSource
based on an class path.Constructor and Description |
---|
DataSourceClassPathResolver()
Constructor
|
DataSourceClassPathResolver(java.lang.String classPathBase)
Constructor.
|
DataSourceClassPathResolver(java.lang.String classPathBase,
boolean lenient)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getClassPathBase() |
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 DataSourceClassPathResolver()
public DataSourceClassPathResolver(java.lang.String classPathBase)
classPathBase
- a base class pathpublic DataSourceClassPathResolver(java.lang.String classPathBase, boolean lenient)
classPathBase
- a base class pathlenient
- shall we ignore resources not found or throw an exception?public java.lang.String getClassPathBase()
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"