public class ResourceSourceFactory extends org.apache.avalon.framework.logger.AbstractLogEnabled implements SourceFactory, org.apache.avalon.framework.thread.ThreadSafe
ROLE| Constructor and Description |
|---|
ResourceSourceFactory() |
| Modifier and Type | Method and Description |
|---|---|
Source |
getSource(java.lang.String location,
java.util.Map parameters)
Get a
Source object. |
void |
release(Source source)
Release a
Source object. |
public Source getSource(java.lang.String location, java.util.Map parameters) throws java.net.MalformedURLException, java.io.IOException, SourceException
Source object.
The factory creates a new Source object that can be used
by the application. However, when this source object is not needed
anymore it has to be released again using the release(Source)
method.getSource in interface SourceFactorylocation - The URI to resolve - this URI includes the protocol.parameters - This is optional.java.io.IOException - if the source couldn't be created for some reason.java.net.MalformedURLExceptionSourceExceptionpublic void release(Source source)
Source object.release in interface SourceFactorysource - the source to release.