com.mindtree.techworks.insight.reporting.verifiers
Class VerifierDeserializerImpl

java.lang.Object
  extended by com.mindtree.techworks.insight.reporting.verifiers.VerifierDeserializerImpl
All Implemented Interfaces:
VerifierDeserializer

public class VerifierDeserializerImpl
extends java.lang.Object
implements VerifierDeserializer

This is the default implementation of the VerifierDeserializer interface in the Verifier framework.

Verifiers may use the services of this class to deserialize them and to do that, they must:

The Verifier framework also uses this class for deserialization of any Verifier. The #deserialize(String) method looks at the serialized form of the Verifier and tries to get the instance of the Verifier and then calls the appropriate VerifierDeserializer for the Verifier.

Since:
Insight 1.5
Version:
$Revision: 27 $ $Date: 2007-12-16 04:58:03 -0700 (Sun, 16 Dec 2007) $
Author:
Bindul Bhowmik
See Also:
VerifierDeserializer, DefaultImplDeserializable

Constructor Summary
VerifierDeserializerImpl()
           
 
Method Summary
static Verifier deserialize(java.lang.String serializedVerifier)
          Inspects the serialized Verifier and calls the appropriate VerifierDeserializer.
 Verifier deserializeVerifier(java.lang.String serializedVerifier)
          Deserializes a verifier serialized in the format specified in VerifierDeserializer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VerifierDeserializerImpl

public VerifierDeserializerImpl()
Method Detail

deserialize

public static Verifier deserialize(java.lang.String serializedVerifier)
                            throws VerifierInitializationException
Inspects the serialized Verifier and calls the appropriate VerifierDeserializer. If the Verifier class cannot be found, or the serialized data is ill formatted, then the deserialization fails and the method throws a VerifierInitializationException.

Parameters:
serializedVerifier - The serialized form of the Verifier.
Returns:
The deserialized verifier.
Throws:
VerifierInitializationException - If the verifier cannot be deserialized.

deserializeVerifier

public Verifier deserializeVerifier(java.lang.String serializedVerifier)
                             throws VerifierInitializationException
Deserializes a verifier serialized in the format specified in VerifierDeserializer. The Verifier needs to implement the DefaultImplDeserializable interface.

Specified by:
deserializeVerifier in interface VerifierDeserializer
Parameters:
serializedVerifier - The serialized format of the Verifier.
Returns:
On successful deserialization, the Verifier instance.
Throws:
VerifierInitializationException - If the Verifier cannot be deserialized.
See Also:
VerifierDeserializer.deserializeVerifier(String)


Copyright © 2003-2008 MindTree Consulting Ltd.. All Rights Reserved.