org.apache.cocoon.components.source.impl
Class EmptySourceFactory

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.components.source.impl.EmptySourceFactory
All Implemented Interfaces:
LogEnabled, ThreadSafe, SourceFactory

public class EmptySourceFactory
extends AbstractLogEnabled
implements SourceFactory, ThreadSafe

A factory for 'empty:' sources (see EmptySource).

Since:
2.1.8
Version:
$Id: EmptySourceFactory.html 1304258 2012-03-23 10:09:27Z ilgrosso $

Field Summary
 
Fields inherited from interface org.apache.excalibur.source.SourceFactory
ROLE
 
Constructor Summary
EmptySourceFactory()
           
 
Method Summary
 Source getSource(String location, Map parameters)
          Get an EmptySource object.
 void release(Source 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

EmptySourceFactory

public EmptySourceFactory()
Method Detail

getSource

public Source getSource(String location,
                        Map parameters)
                 throws IOException,
                        MalformedURLException
Get an EmptySource object.

Specified by:
getSource in interface SourceFactory
Parameters:
location - The URI to resolve - this URI includes the scheme.
parameters - this is optional and not used here
Throws:
IOException
MalformedURLException
See Also:
SourceFactory.getSource(java.lang.String, java.util.Map)

release

public void release(Source source)
Specified by:
release in interface SourceFactory
See Also:
SourceFactory.release(org.apache.excalibur.source.Source)


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.