|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.AbstractLogEnabled org.apache.cocoon.components.source.impl.SourceFactoryWrapper
public final class SourceFactoryWrapper
This class wraps a Cocoon SourceFactory and makes it usable within the Avalon Excalibur source resolving architecure. The main purpose is to avoid recoding existing factories.
Field Summary |
---|
Fields inherited from interface org.apache.excalibur.source.SourceFactory |
---|
ROLE |
Constructor Summary | |
---|---|
SourceFactoryWrapper()
|
Method Summary | |
---|---|
void |
compose(ComponentManager manager)
Set the current ComponentManager instance used by this
Composable . |
void |
configure(Configuration conf)
Configure the SourceFactories |
void |
contextualize(Context context)
Get the context |
void |
dispose()
Dispose |
Source |
getSource(String location,
Map parameters)
Get a Source object. |
void |
release(Source source)
Release a Source object. |
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 |
---|
public SourceFactoryWrapper()
Method Detail |
---|
public void configure(Configuration conf) throws ConfigurationException
configure
in interface Configurable
ConfigurationException
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
public void compose(ComponentManager manager) throws ComponentException
ComponentManager
instance used by this
Composable
.
compose
in interface Composable
ComponentException
public void dispose()
dispose
in interface Disposable
public Source getSource(String location, Map parameters) throws MalformedURLException, IOException
Source
object.
getSource
in interface SourceFactory
parameters
- This is optional.
MalformedURLException
IOException
public void release(Source source)
Source
object.
release
in interface SourceFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |