gr.uoa.di.madgik.commons.channel.events
Class EventFactory

java.lang.Object
  extended by gr.uoa.di.madgik.commons.channel.events.EventFactory

public class EventFactory
extends java.lang.Object

A factory for creating Event objects.


Constructor Summary
EventFactory()
           
 
Method Summary
static ChannelStateEvent GetEvent(ChannelState.EventName Name, byte[] serialization)
          Retrieves an instance of the event based on the provided name as provided by the ChannelState.EventName and the serialization of the event as this was produced by ISerializable.Encode()
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventFactory

public EventFactory()
Method Detail

GetEvent

public static ChannelStateEvent GetEvent(ChannelState.EventName Name,
                                         byte[] serialization)
                                  throws java.lang.Exception
Retrieves an instance of the event based on the provided name as provided by the ChannelState.EventName and the serialization of the event as this was produced by ISerializable.Encode()

Parameters:
Name - the name
serialization - the serialization
Returns:
the instantiated channel state event
Throws:
java.lang.Exception - The event could not be instantiated