DataSourceResolverpublic class DataSourceClassPathResolver extends DataSourceBaseResolver
DataSource based on an class path.| Constructor | Description |
|---|---|
DataSourceClassPathResolver() |
Constructor
|
DataSourceClassPathResolver(java.lang.String classPathBase) |
Constructor.
|
DataSourceClassPathResolver(java.lang.String classPathBase,
boolean lenient) |
Constructor.
|
| Modifier and Type | Method | 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. |
isCid, isFileUrl, isHttpUrl, isLenientpublic 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 resourceDataSourcejava.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