Class EventDriverFactory

  • Direct Known Subclasses:
    JsrEventDriverFactory

    public class EventDriverFactory
    extends java.lang.Object
    Create EventDriver implementations.
    • Method Detail

      • addImplementation

        public void addImplementation​(EventDriverImpl impl)
      • clearImplementations

        public void clearImplementations()
      • getClassName

        protected java.lang.String getClassName​(java.lang.Object websocket)
      • getImplementations

        public java.util.List<EventDriverImpl> getImplementations()
      • removeImplementation

        public boolean removeImplementation​(EventDriverImpl impl)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • wrap

        public EventDriver wrap​(java.lang.Object websocket)
        Wrap the given WebSocket object instance in a suitable EventDriver
        Parameters:
        websocket - the websocket instance to wrap. Must either implement WebSocketListener or be annotated with @WebSocket
        Returns:
        appropriate EventDriver for this websocket instance.