fr.paris5.shaman.spirit.insightsource
Class InsightSourceFactory

fr.paris5.shaman.spirit.insightsource.InsightSourceFactory
All Implemented Interfaces:
LocationConstants

public class InsightSourceFactory
implements LocationConstants

Cocoon SourceFactory implementation for supporting insight-content: protocol for resources accessed by the Sitemap.

Version:
$Id: InsightSourceFactory.java,v 1.1 2002/07/25 13:18:08 caillette Exp $
Author:
Laurent Caillette

Field Summary
private  InsightDataAccess dataCache
           
private  org.apache.avalon.framework.component.ComponentManager manager
           
 
Fields inherited from interface fr.paris5.shaman.spirit.insightsource.LocationConstants
INSIGHT_CONTENT_PROTOCOL, PUBLICATION_PREFIX, TOPIC_PREFIX
 
Constructor Summary
InsightSourceFactory()
           
 
Method Summary
 void compose(org.apache.avalon.framework.component.ComponentManager manager)
           
private  InsightDataAccess getDataCache()
           
 org.apache.cocoon.environment.Source getSource(org.apache.cocoon.environment.Environment environment, java.lang.String location)
           
 org.apache.cocoon.environment.Source getSource(org.apache.cocoon.environment.Environment environment, java.net.URL base, java.lang.String location)
          Unsupported operation.
 

Field Detail

manager

private org.apache.avalon.framework.component.ComponentManager manager

dataCache

private InsightDataAccess dataCache
Constructor Detail

InsightSourceFactory

public InsightSourceFactory()
Method Detail

compose

public void compose(org.apache.avalon.framework.component.ComponentManager manager)
             throws org.apache.avalon.framework.component.ComponentException

getDataCache

private InsightDataAccess getDataCache()

getSource

public org.apache.cocoon.environment.Source getSource(org.apache.cocoon.environment.Environment environment,
                                                      java.lang.String location)
                                               throws org.apache.cocoon.ProcessingException,
                                                      java.net.MalformedURLException,
                                                      java.io.IOException

getSource

public org.apache.cocoon.environment.Source getSource(org.apache.cocoon.environment.Environment environment,
                                                      java.net.URL base,
                                                      java.lang.String location)
                                               throws org.apache.cocoon.ProcessingException,
                                                      java.net.MalformedURLException,
                                                      java.io.IOException
Unsupported operation. Using a URL would break because the insight-content: protocol is unknown by Java.
Throws:
UnsupportedOperationException - Always.


Copyright © 2002 Laurent Caillette and l'Université René Descartes, Paris 5. All rights reserved.