private EzyEventHandlers newEventHandlers()
        {
            EzyEventHandlers handlers = new EzyEventHandlers(client);

            handlers.addHandler(EzyEventType.CONNECTION_SUCCESS, new EzyConnectionSuccessHandler());
            handlers.addHandler(EzyEventType.CONNECTION_FAILURE, new EzyConnectionFailureHandler());
            handlers.addHandler(EzyEventType.DISCONNECTION, new EzyDisconnectionHandler());
            return(handlers);
        }
 public EzySimpleHandlerManager(EzyClient client)
 {
     this.client                         = client;
     this.pingSchedule                   = client.getPingSchedule();
     this.eventHandlers                  = newEventHandlers();
     this.dataHandlers                   = newDataHandlers();
     this.appDataHandlersByAppName       = new Dictionary <String, EzyAppDataHandlers>();
     this.pluginDataHandlersByPluginName = new Dictionary <String, EzyPluginDataHandlers>();
 }
 public void setHandlerManager(EzyHandlerManager handlerManager)
 {
     this.handlerManager = handlerManager;
     this.dataHandlers   = handlerManager.getDataHandlers();
     this.eventHandlers  = handlerManager.getEventHandlers();
 }
 public void setEventHandlers(EzyEventHandlers eventHandlers)
 {
     this.eventHandlers = eventHandlers;
 }
 public EzyClient()
 {
     this.eventHandlers     = new EzyEventHandlers();
     this.requestSerializer = new EzyArrayRequestSerializer();
 }