org.apache.cocoon.components.source.impl
Class ModuleSourceFactory
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.components.source.impl.ModuleSourceFactory
- All Implemented Interfaces:
- Contextualizable, LogEnabled, Serviceable, ThreadSafe, SourceFactory
public class ModuleSourceFactory
- extends AbstractLogEnabled
- implements SourceFactory, Serviceable, Contextualizable, ThreadSafe
A factory for 'module:' sources (see ModuleSource
).
- Author:
- Daniel Fagerstrom
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ModuleSourceFactory
public ModuleSourceFactory()
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,
MalformedURLException
- Get a
ModuleSource
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
MalformedURLException
release
public void release(Source source)
- Release a
Source
object.
- Specified by:
release
in interface SourceFactory
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.