|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.excalibur.source.impl.FileSourceFactory
A factory for filesystem-based sources (see FileSource
).
Field Summary |
Fields inherited from interface org.apache.excalibur.source.SourceFactory |
ROLE |
Constructor Summary | |
FileSourceFactory()
|
Method Summary | |
Source |
getSource(java.lang.String location,
java.util.Map parameters)
Get a Source object. |
void |
release(Source source)
Does nothing, since FileSource s don't need to be released. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FileSourceFactory()
Method Detail |
public Source getSource(java.lang.String location, java.util.Map parameters) throws java.io.IOException, java.net.MalformedURLException
SourceFactory
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 SourceFactory.release(Source)
method. This is achieved by using SourceResolver.release(Source)
which
finds the appropriate SourceFactory
.
getSource
in interface SourceFactory
location
- The URI to resolve - this URI includes the scheme.parameters
- additionnal named parameters (optionnal and can be null
)
that drive the creation of the Source
object. Each implementation
must specify what parameters it accepts.
java.io.IOException
- if the source couldn't be created for some reason.
java.net.MalformedURLException
SourceFactory.getSource(java.lang.String, java.util.Map)
public void release(Source source)
FileSource
s don't need to be released.
release
in interface SourceFactory
source
- the source to release.SourceFactory.release(org.apache.excalibur.source.Source)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |