What is Jacson? Getting started How it works? Contact How to Contribute? Developer Information How to Extend? Component Lifecycle Javadocs Changelog License Quality assurance Design Decisions Other information
|
With "Jacson Component" we mean the plugin classes, namely
JacsonChunkSource ,
JacsonFilter ,
JacsonEvaluator ,
These components are (essentially)
all used in a similar fashion:
- They are constructed by a generic factory
FastClassForName - Later they get initialized by a call to their
two argument
init() method.
- Further configuration is left over to the component
by inspection of its
ConfigNode
and its
JacsonRegistry .
Note: This is "pull" configuration, like in suns
servlet spec, the alternative would have been a "beany"
"push" configuration like Ants and many other tools have.
Both has advantages and disadvantages.
-
To finish setup the
registerState() and
registerReport() are called.
- Next step somewhat depend on the actual class:
-
For all plugins once and finally a
summary()
is issued.
Remarks:JacsonReport is
somewhat different, since the top most report might be
set by application and not by the xml configuration. Therefore
the init() method does not have the second
JacsonRegistry
argument, since a surrounding application will not have
such a Registry. A report might also have a constructor with
arguments. But if it only has such an constructor it cannot
be used within configuration files.
On the other hand it is not entirely different.
|