com.webhydra.slug.process
Class AbstractSlugService

java.lang.Object
  extended by com.webhydra.slug.process.AbstractSlugService
All Implemented Interfaces:
ISlugService
Direct Known Subclasses:
AbstractProcessRunner, AbstractProcessStatusTranslator

public abstract class AbstractSlugService
extends java.lang.Object
implements ISlugService

Abstract ISlugService implementation.

Author:
rossen

Field Summary
protected  java.util.Map setup
          Holds IStatusTranslator setup information
 
Constructor Summary
AbstractSlugService()
          Creates a new instance of AbstractSlugService
 
Method Summary
protected  java.util.Map getParams()
          Provides access to the setup parameters
 void init(java.util.Map setup)
          Default implementation.
 void prepare()
          Default empty implementation
 void release()
          Default empty implementation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

setup

protected java.util.Map setup
Holds IStatusTranslator setup information

Constructor Detail

AbstractSlugService

public AbstractSlugService()
Creates a new instance of AbstractSlugService

Method Detail

init

public void init(java.util.Map setup)
          throws SlugInitializationException
Default implementation. Just save provided setu parameters.

Specified by:
init in interface ISlugService
Parameters:
setup - configuration parameters
Throws:
SlugInitializationException - not thrown

prepare

public void prepare()
             throws SlugInitializationException
Default empty implementation

Specified by:
prepare in interface ISlugService
Throws:
SlugInitializationException

release

public void release()
Default empty implementation

Specified by:
release in interface ISlugService

getParams

protected java.util.Map getParams()
Provides access to the setup parameters

Returns:
setup Map provided by init(Map) call.
See Also:
init(Map)