org.jasen.interfaces
Interface JasenConfigurationLoader

All Known Implementing Classes:
DefaultJasenConfigurationLoader

public interface JasenConfigurationLoader

The loader is used to logically separate the task of loading configuration away from the engine
When the auto update engine is used, a restart of the engine may be required. In this case the engine must know where its configuration resides without the user of the engine's intervention

If the engine caller specifies their own configuration, the loader is used to dynamically reload this configuration


Method Summary
 void closeConfigurationStream()
          Closes the configuration stream
 InputStream openConfigurationStream()
          Opens a stream to the XML configuration required to initialise the engine
 

Method Detail

openConfigurationStream

public InputStream openConfigurationStream()
                                    throws JasenException
Opens a stream to the XML configuration required to initialise the engine

Returns:
The inputstream positioned at the start
Throws:
JasenException

closeConfigurationStream

public void closeConfigurationStream()
                              throws JasenException
Closes the configuration stream

Throws:
JasenException