com.webhydra.slug.process
Interface ISlugService

All Known Subinterfaces:
IProcessStatusTranslator, ISlugRunner
All Known Implementing Classes:
AbstractProcessRunner, AbstractProcessStatusTranslator, AbstractSlugService, AbstractXmlProcessStatusTranslator, JavaScriptProcessStatusTranslator, UnlimitedProcessRunner, XmlDtdProcessStatusTranslator, XmlXsdProcessStatusTranslator

public interface ISlugService

Slug service interface. All implementations should be instantiable using Class.newInstance() and be thread safe as well.

Author:
rossen
See Also:
Class.newInstance()

Method Summary
 void init(java.util.Map setup)
          Initialize class implelentation.
 void prepare()
          Inform implementation that it is about ot be put in service.
 void release()
          Inform implementation that it is about ot be removed from servide.
 

Method Detail

init

void init(java.util.Map setup)
          throws SlugInitializationException
Initialize class implelentation.

Parameters:
setup - conficuration parameters.
Throws:
SlugInitializationException - if instance cannot be properly initialized.

prepare

void prepare()
             throws SlugInitializationException
Inform implementation that it is about ot be put in service. Use this call to prepare any external resources that may be needed for the normal processing.

Throws:
SlugInitializationException - in case of an error.

release

void release()
Inform implementation that it is about ot be removed from servide. Use this call to release any external resources used during the normal processing.