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

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.components.source.impl.SlideSourceFactory
All Implemented Interfaces:
Contextualizable, LogEnabled, Serviceable, ThreadSafe, SourceFactory

public class SlideSourceFactory
extends AbstractLogEnabled
implements SourceFactory, Contextualizable, Serviceable, ThreadSafe

A factory for sources from a Jakarta Slide repository.

Version:
CVS $Id: SlideSourceFactory.html 1304258 2012-03-23 10:09:27Z ilgrosso $

Field Summary
 
Fields inherited from interface org.apache.excalibur.source.SourceFactory
ROLE
 
Constructor Summary
SlideSourceFactory()
           
 
Method Summary
 void contextualize(Context context)
           
 Source getSource(String location, Map parameters)
          Get a Source object.
 void release(Source source)
          Release a Source object.
 void service(ServiceManager manager)
          Lookup the SlideRepository.
 
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

SlideSourceFactory

public SlideSourceFactory()
Method Detail

contextualize

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

service

public void service(ServiceManager manager)
             throws ServiceException
Lookup the SlideRepository.

Specified by:
service in interface Serviceable
Parameters:
manager - ServiceManager.
Throws:
ServiceException

getSource

public Source getSource(String location,
                        Map parameters)
                 throws MalformedURLException,
                        IOException,
                        SourceException
Get a Source object.

Specified by:
getSource in interface SourceFactory
Parameters:
location - URI of the source.
parameters - This is optional.
Returns:
A new source object.
Throws:
MalformedURLException
IOException
SourceException

release

public void release(Source source)
Release a Source object.

Specified by:
release in interface SourceFactory
Parameters:
source - Source, which should be released.


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.