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

java.lang.Object
  extended byorg.apache.cocoon.components.source.impl.EmptySourceFactory
All Implemented Interfaces:
SourceFactory, ThreadSafe

public class EmptySourceFactory
extends Object
implements SourceFactory, ThreadSafe

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

Since:
2.1.8
Version:
$Id: EmptySourceFactory.html 1304280 2012-03-23 11:18:01Z 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 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
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
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-2008 The Apache Software Foundation. All Rights Reserved.