public interface DomInspector<E> extends Inspector
DomInspector
is an optional interface that enables an optimization. Like
most optimizations it unfortunately adds some complexity. The basic idea is that, whilst XML is a
great lowest-common-denominator for the Inspector
interface (perfect for passing
between disparate technologies and tiers in order to allow maximum flexibility in what can be
inspected) serializing to and from XML strings is expensive.
Most Inspectors maintain their inspection results internally in a DOM. This interface allows them
to expose that DOM directly, rather than serializing it to a String, whereupon either the
Metawidget or a CompositeInspector
must typically deserialize it back again.
If your Inspector
extends BaseObjectInspector
or
BaseXmlInspector
, this optimization is implemented for you.
Copyright © 2015. All Rights Reserved.