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

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

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

A factory for 'xmodule:' sources (see XModuleSource).

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

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

XModuleSourceFactory

public XModuleSourceFactory()
Method Detail

service

public void service(ServiceManager manager)
             throws ServiceException
Servicable Interface

Specified by:
service in interface Serviceable
Throws:
ServiceException

contextualize

public void contextualize(Context context)
                   throws ContextException
Contextualizable, get the object model

Specified by:
contextualize in interface Contextualizable
Throws:
ContextException

getSource

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

Specified by:
getSource in interface SourceFactory
Parameters:
location - The URI to resolve - this URI includes the scheme.
parameters - this is optional and not used here
Throws:
IOException

release

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

Specified by:
release in interface SourceFactory


Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.