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

java.lang.Object
  extended byorg.apache.cocoon.util.AbstractLogEnabled
      extended byorg.apache.cocoon.components.source.impl.BlockContextSourceFactory
All Implemented Interfaces:
Serviceable, SourceFactory, ThreadSafe

public class BlockContextSourceFactory
extends org.apache.cocoon.util.AbstractLogEnabled
implements SourceFactory, Serviceable, ThreadSafe

Create a BlockContextSource that makes the resources of a block available. The form of the URL is blockcontext:/blockname/path.

Version:
$Id: BlockContextSourceFactory.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Field Summary
 
Fields inherited from interface org.apache.excalibur.source.SourceFactory
ROLE
 
Constructor Summary
BlockContextSourceFactory()
           
 
Method Summary
 Source getSource(String location, Map parameters)
           
 void release(Source source)
           
 void service(ServiceManager aServiceManager)
           
 
Methods inherited from class org.apache.cocoon.util.AbstractLogEnabled
getLogger, setLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockContextSourceFactory

public BlockContextSourceFactory()
Method Detail

service

public void service(ServiceManager aServiceManager)
             throws ServiceException
Specified by:
service in interface Serviceable
Throws:
ServiceException
See Also:
Serviceable.service(org.apache.avalon.framework.service.ServiceManager)

getSource

public Source getSource(String location,
                        Map parameters)
                 throws IOException
Specified by:
getSource in interface SourceFactory
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.