|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.AbstractLogEnabled org.apache.excalibur.source.impl.ResourceSourceFactory
A factory for the Resource protocol
Field Summary |
Fields inherited from interface org.apache.excalibur.source.SourceFactory |
ROLE |
Constructor Summary | |
ResourceSourceFactory()
|
Method Summary | |
Source |
getSource(java.lang.String location,
java.util.Map parameters)
Get a Source object. |
void |
release(Source source)
Release a Source object. |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ResourceSourceFactory()
Method Detail |
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 SourceFactory
location
- 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.MalformedURLException
SourceException
public void release(Source source)
Source
object.
release
in interface SourceFactory
source
- the source to release.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |