org.apache.excalibur.source.impl
Class CommonsVFSSourceFactory

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.excalibur.source.impl.CommonsVFSSourceFactory
All Implemented Interfaces:
Component, LogEnabled, SourceFactory, ThreadSafe

public class CommonsVFSSourceFactory
extends AbstractLogEnabled
implements SourceFactory, ThreadSafe

A factory for source types supported by Commons VFS.

Version:
$Id: $
Author:
Marcus Crafter

Field Summary
 
Fields inherited from interface org.apache.excalibur.source.SourceFactory
ROLE
 
Constructor Summary
CommonsVFSSourceFactory()
           
 
Method Summary
 Source getSource(java.lang.String location, java.util.Map parameters)
          Returns a CommonsVFSSource instance primed with the specified location
 void release(Source source)
          Releases the given source.
 
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

CommonsVFSSourceFactory

public CommonsVFSSourceFactory()
Method Detail

getSource

public Source getSource(java.lang.String location,
                        java.util.Map parameters)
                 throws java.io.IOException,
                        java.net.MalformedURLException
Returns a CommonsVFSSource instance primed with the specified location

Specified by:
getSource in interface SourceFactory
Parameters:
location - source location
parameters - source parameters
Returns:
the created source object.
Throws:
java.io.IOException - if an IO error occurs
java.net.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-2005 The Apache Software Foundation. All Rights Reserved.