gr.uoa.di.madgik.commons.channel.events
Class EventFactory
java.lang.Object
gr.uoa.di.madgik.commons.channel.events.EventFactory
public class EventFactory
- extends Object
A factory for creating Event objects.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EventFactory
public EventFactory()
GetEvent
public static ChannelStateEvent GetEvent(ChannelState.EventName Name,
byte[] serialization)
throws 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 nameserialization - the serialization
- Returns:
- the instantiated channel state event
- Throws:
Exception - The event could not be instantiated
Copyright © 2012. All Rights Reserved.