|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface VerifierDeserializer
Implementations of this class would deserialize a serialized
Verifier.
While using a Verifier, Insight would call the
#getDeserializer
method to get the instance of the VerifierDeserializer to use
for (re)creating the Verifier instance.
The Insight distribution provides a default implementation for the the
Interface as VerifierDeserializerImpl. To use the services of
the default implementation, Verifiers need to implement the
DefaultImplDeserializable interface. The default implementation
uses this interface to populate the values of the fields in the
Verifier. Such Verifiers need to return an instance
of the VerifierDeserializerImpl when the
#getDeserializer() is called on them. They also need to be
serialized in the exact format specified below, or deserialization might
fail.
The suggested format to serialize a Verifier is as below:
<verifier>
<!-- The class that implements the Verifier interface -->
<class>the.implementing.class.of.the.verifier</class>
<!-- The display name of the verifier -->
<name>Verifier Display Name</name>
<fields>
<field>
<name>nonArrayField</name>
<isArray>false</isArray>
<value>Some Value</value>
</field>
<field>
<name>arrayField</name>
<isArray>true</isArray>
<value>Some Value</value>
<value>Some Other Value</value>
</field>
</fields>
<jobs>
<job>
<!-- A serialized job used by the Verifier (including the
'job' tag above). For more details on the format here
refer to the documentation of Jobs. -->
</job>
</jobs>
</verifier>
If the Verifier provides its own Serializer and
VerifierDeserializer, then it need not follow the format
mentioned here except for the following tags:
Verifier class and get its
VerifierDeserializer.
VerifierDeserializerImpl,
DefaultImplDeserializable,
Verifier| Method Summary | |
|---|---|
Verifier |
deserializeVerifier(java.lang.String serializedVerifier)
Deserializes a serialized Verifier. |
| Method Detail |
|---|
Verifier deserializeVerifier(java.lang.String serializedVerifier)
throws VerifierInitializationException
Verifier or the way to deserialize a particular
Verifier would depend on the implementation of the
Verifier and its (de)serializer.
serializedVerifier - The serialized format of the Verifier.
Verifier
instance.
VerifierInitializationException - If the Verifier cannot be deserialized.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||