public abstract class Module
extends java.lang.Object
A module has to be register on WebService
instance. It provides Processor
, ParserFactory
and PersistableFactory
that will be used during all process
Processor
,
ParserFactory
,
PersistableFactory
,
WebService.registerModule(Module)
Modifier and Type | Field and Description |
---|---|
protected Processor |
mProcessor
Instance of
Processor |
Constructor and Description |
---|
Module() |
Modifier and Type | Method and Description |
---|---|
Processor |
getProcessor()
Getter for
Processor field |
void |
init()
|
abstract ParserFactory |
setParserFactory()
Return the
ParserFactory you want for this module |
abstract PersistableFactory |
setPersistableFactory()
Return the
PersistableFactory you want for this module |
abstract Processor |
setProcessor()
Return the
Processor you want for this module |
public void init()
public abstract Processor setProcessor()
Processor
you want for this moduleProcessor
mProcessor
public abstract ParserFactory setParserFactory()
ParserFactory
you want for this moduleParserFactory
public abstract PersistableFactory setPersistableFactory()
PersistableFactory
you want for this modulePersistableFactory
public Processor getProcessor()
Processor
fieldProcessor
fieldmProcessor