Class EventDriverFactory
- java.lang.Object
-
- org.eclipse.jetty.websocket.common.events.EventDriverFactory
-
- Direct Known Subclasses:
JsrEventDriverFactory
public class EventDriverFactory extends java.lang.ObjectCreate EventDriver implementations.
-
-
Constructor Summary
Constructors Constructor Description EventDriverFactory(WebSocketContainerScope containerScope)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddImplementation(EventDriverImpl impl)voidclearImplementations()protected java.lang.StringgetClassName(java.lang.Object websocket)java.util.List<EventDriverImpl>getImplementations()booleanremoveImplementation(EventDriverImpl impl)java.lang.StringtoString()EventDriverwrap(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:
toStringin 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 implementWebSocketListeneror be annotated with@WebSocket- Returns:
- appropriate EventDriver for this websocket instance.
-
-