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. |
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 failedCopyright © 2010 - 2023 Adobe. All Rights Reserved