Used annotation dispatch for some protocol messages

This commit is contained in:
selva.andre
2014-08-17 16:58:51 +02:00
parent 5446d25528
commit 0e729b51bf
@@ -94,8 +94,8 @@ public class SimpleMessaging implements IMessaging, EventHandler<ValueEvent> {
m_executor.submit(m_eventProcessor); m_executor.submit(m_eventProcessor);
annotationHelper.processAnnotations(m_processor); annotationHelper.processAnnotations(m_processor);
processInit(configProps);
disruptorPublish(new InitEvent(configProps)); // disruptorPublish(new InitEvent(configProps));
} }
@@ -174,9 +174,9 @@ public class SimpleMessaging implements IMessaging, EventHandler<ValueEvent> {
throw new RuntimeException("Illegal message received " + message); throw new RuntimeException("Illegal message received " + message);
} }
} else if (evt instanceof InitEvent) { } /*else if (evt instanceof InitEvent) {
processInit(((InitEvent) evt).getConfig()); processInit(((InitEvent) evt).getConfig());
} else if (evt instanceof LostConnectionEvent) { } */else if (evt instanceof LostConnectionEvent) {
LostConnectionEvent lostEvt = (LostConnectionEvent) evt; LostConnectionEvent lostEvt = (LostConnectionEvent) evt;
m_processor.proccessConnectionLost(lostEvt.getClientID()); m_processor.proccessConnectionLost(lostEvt.getClientID());
} }