Class EventDriverFactory
- java.lang.Object
-
- org.eclipse.jetty.websocket.common.events.EventDriverFactory
-
- Direct Known Subclasses:
JsrEventDriverFactory
public class EventDriverFactory extends java.lang.Object
Create EventDriver implementations.
-
-
Constructor Summary
Constructors Constructor Description EventDriverFactory(WebSocketContainerScope containerScope)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addImplementation(EventDriverImpl impl)
void
clearImplementations()
protected java.lang.String
getClassName(java.lang.Object websocket)
java.util.List<EventDriverImpl>
getImplementations()
boolean
removeImplementation(EventDriverImpl impl)
java.lang.String
toString()
EventDriver
wrap(java.lang.Object websocket)
Wrap the given WebSocket object instance in a suitable EventDriver
-
-
-
Constructor Detail
-
EventDriverFactory
public EventDriverFactory(WebSocketContainerScope containerScope)
-
-
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 classjava.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 implementWebSocketListener
or be annotated with@WebSocket
- Returns:
- appropriate EventDriver for this websocket instance.
-
-