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

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.cocoon.components.source.impl.BlocksSourceFactory
All Implemented Interfaces:
Component, LogEnabled, Serviceable, SourceFactory, ThreadSafe, URIAbsolutizer

public final class BlocksSourceFactory
extends AbstractLogEnabled
implements SourceFactory, ThreadSafe, Serviceable, URIAbsolutizer

This class implements the blocks: protocol. WARNING: It is created for being able to use the blocks functionality without needing to change the Cocoon object and other fundamental classes. This class will probably be removed later.

Version:
$Id: BlocksSourceFactory.java 292282 2005-09-28 19:54:16Z vgritsenko $

Field Summary
 
Fields inherited from interface org.apache.excalibur.source.SourceFactory
ROLE
 
Constructor Summary
BlocksSourceFactory()
           
 
Method Summary
 String absolutize(String baseURI, String location)
           
 Source getSource(String location, Map parameters)
           
 void release(Source source)
           
 void service(ServiceManager manager)
           
 
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

BlocksSourceFactory

public BlocksSourceFactory()
Method Detail

service

public void service(ServiceManager manager)
             throws ServiceException
Specified by:
service in interface Serviceable
Throws:
ServiceException

getSource

public Source getSource(String location,
                        Map parameters)
                 throws MalformedURLException,
                        IOException
Specified by:
getSource in interface SourceFactory
Throws:
MalformedURLException
IOException

release

public void release(Source source)
Specified by:
release in interface SourceFactory

absolutize

public String absolutize(String baseURI,
                         String location)
Specified by:
absolutize in interface URIAbsolutizer


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.