org.apache.lenya.cms.cocoon.source
Class AggregatingFallbackSourceFactory

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.lenya.cms.cocoon.source.AggregatingFallbackSourceFactory
All Implemented Interfaces:
org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.service.Serviceable, org.apache.excalibur.source.SourceFactory, org.apache.excalibur.source.URIAbsolutizer

public class AggregatingFallbackSourceFactory
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements org.apache.excalibur.source.SourceFactory, org.apache.avalon.framework.service.Serviceable, org.apache.avalon.framework.context.Contextualizable, org.apache.excalibur.source.URIAbsolutizer

Aggregate all existing fallback URIs by merging their XML content under the document element of the first encountered source.


Field Summary
 
Fields inherited from interface org.apache.excalibur.source.SourceFactory
ROLE
 
Constructor Summary
AggregatingFallbackSourceFactory()
           
 
Method Summary
 java.lang.String absolutize(java.lang.String baseURI, java.lang.String location)
           
 void contextualize(org.apache.avalon.framework.context.Context context)
           
 org.apache.excalibur.source.Source getSource(java.lang.String location, java.util.Map parameters)
           
 void release(org.apache.excalibur.source.Source source)
           
 void service(org.apache.avalon.framework.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

AggregatingFallbackSourceFactory

public AggregatingFallbackSourceFactory()
Method Detail

getSource

public org.apache.excalibur.source.Source getSource(java.lang.String location,
                                                    java.util.Map parameters)
                                             throws java.io.IOException,
                                                    java.net.MalformedURLException
Specified by:
getSource in interface org.apache.excalibur.source.SourceFactory
Throws:
java.io.IOException
java.net.MalformedURLException

release

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

service

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

contextualize

public void contextualize(org.apache.avalon.framework.context.Context context)
                   throws org.apache.avalon.framework.context.ContextException
Specified by:
contextualize in interface org.apache.avalon.framework.context.Contextualizable
Throws:
org.apache.avalon.framework.context.ContextException

absolutize

public java.lang.String absolutize(java.lang.String baseURI,
                                   java.lang.String location)
Specified by:
absolutize in interface org.apache.excalibur.source.URIAbsolutizer


Copyright 1999-2006 Apache Software Foundation. All Rights Reserved.