Class RegistryHandler

java.lang.Object
com.cloud.serverpak.handlers.RegistryHandler

public class RegistryHandler extends Object
The message listener logger class.
  • Field Details

  • Constructor Details

    • RegistryHandler

      public RegistryHandler(MainHandler mainHandler)
      Creates a collection HashMap, puts it in the form of keys message classes, as well as listener methods for processing these messages.
      Parameters:
      mainHandler - is the main message listener.
  • Method Details

    • getHandler

      public RequestHandler getHandler(Class cl)
      Returns the listener method from the HashMap collection, by the class of the received message.
      Parameters:
      cl - Message class.
      Returns:
      the listener method in the interface variable.