org.apache.excalibur.source.impl
Class CommonsVFSSourceFactory
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.excalibur.source.impl.CommonsVFSSourceFactory
- All Implemented Interfaces:
- LogEnabled, org.apache.avalon.framework.thread.ThreadSafe, SourceFactory
public class CommonsVFSSourceFactory
- extends AbstractLogEnabled
- implements SourceFactory, org.apache.avalon.framework.thread.ThreadSafe
A factory for source types supported by
Commons VFS.
- Version:
- $Id: $
- Author:
- Marcus Crafter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommonsVFSSourceFactory
public CommonsVFSSourceFactory()
getSource
public Source getSource(String location,
Map parameters)
throws IOException,
MalformedURLException
- Returns a
CommonsVFSSource
instance primed with the specified location
- Specified by:
getSource
in interface SourceFactory
- Parameters:
location
- source locationparameters
- source parameters
- Returns:
- the created source object.
- Throws:
IOException
- if an IO error occurs
MalformedURLException
- if a URL is malformed- See Also:
SourceFactory.getSource(java.lang.String, java.util.Map)
release
public void release(Source source)
- Releases the given source.
- Specified by:
release
in interface SourceFactory
- Parameters:
source
- source to release- See Also:
SourceFactory.release(org.apache.excalibur.source.Source)
Copyright © 1997-2012 The Apache Software Foundation. All Rights Reserved.