Class EventDriverFactory

java.lang.Object
org.eclipse.jetty.websocket.common.events.EventDriverFactory
Direct Known Subclasses:
JsrEventDriverFactory

public class EventDriverFactory extends Object
Create EventDriver implementations.
  • Field Details

  • Constructor Details

  • Method Details

    • addImplementation

      public void addImplementation(EventDriverImpl impl)
    • clearImplementations

      public void clearImplementations()
    • getClassName

      protected String getClassName(Object websocket)
    • getImplementations

      public List<EventDriverImpl> getImplementations()
    • removeImplementation

      public boolean removeImplementation(EventDriverImpl impl)
    • toString

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

      public EventDriver wrap(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.