Version: ${maven.project.version}

org.soaplab.services.events
Interface EventDeserializer

All Known Implementing Classes:
DefaultDeserializer

public interface EventDeserializer

An interface whose implementations can re-create Soaplab events (Java objects) from their XML representation.

The reason why it is an interface and not a class is that Soaplab can use the SPI mechanism to find an implementation that can deal also with non-default events (the default events can be deserialized by the default implementation).

Version:
$Id: EventDeserializer.java,v 1.2 2006/11/19 02:14:30 marsenger Exp $
Author:
Martin Senger

Method Summary
 AnalysisEvent deserialize(java.lang.Object source, java.io.File xmlEventFile)
          Create an object representing an event from XML stored in given file.
 AnalysisEvent deserialize(java.lang.Object source, java.lang.String xmlEvent)
          Create an object representing an event from 'xmlEvent'.
 

Method Detail

deserialize

AnalysisEvent deserialize(java.lang.Object source,
                          java.lang.String xmlEvent)
                          throws SoaplabException
Create an object representing an event from 'xmlEvent'.

Parameters:
source - is a source of this event; can be null if the source is not known (this is here because event serialization, the XML string, does not contain any event source)
xmlEvent - is a serialized event
Returns:
an event created from input parameters
Throws:
SoaplabException - if something prevents to create an event

deserialize

AnalysisEvent deserialize(java.lang.Object source,
                          java.io.File xmlEventFile)
                          throws SoaplabException
Create an object representing an event from XML stored in given file.

Otherwise the same as the deserialize(Object,String) method.

Throws:
SoaplabException

Version: ${maven.project.version}

Submit a bug or feature
Generated: Tue Jun 14 15:18:14 AST 2011