org.carrot2.core.controller
Interface ComponentFactoryLoader

All Known Implementing Classes:
BeanShellFactoryDescriptionLoader, XmlFactoryDescriptionLoader

public interface ComponentFactoryLoader

The component loader is responsible for interpreting a stream of bytes and turning it into an instance of LoadedComponentFactory.

Version:
$Revision: 2122 $
Author:
Dawid Weiss

Method Summary
 LoadedComponentFactory load(InputStream dataStream)
          Loads a component factory and associated data from a data stream.
 

Method Detail

load

LoadedComponentFactory load(InputStream dataStream)
                            throws IOException,
                                   ComponentInitializationException
Loads a component factory and associated data from a data stream.

Parameters:
dataStream - The data stream to load from.
Returns:
Returns the factory and its associated data as LoadedComponentFactory object.
Throws:
IOException - If an i/o error occurs.
ComponentInitializationException


Copyright (c) Dawid Weiss, Stanislaw Osinski