Class EventDriverFactory
- java.lang.Object
-
- org.eclipse.jetty.websocket.common.events.EventDriverFactory
-
public class EventDriverFactory extends 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 voidaddImplementation(EventDriverImpl impl)voidclearImplementations()protected StringgetClassName(Object websocket)List<EventDriverImpl>getImplementations()booleanremoveImplementation(EventDriverImpl impl)StringtoString()EventDriverwrap(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()
-
getImplementations
public List<EventDriverImpl> getImplementations()
-
removeImplementation
public boolean removeImplementation(EventDriverImpl impl)
-
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 implementWebSocketListeneror be annotated with@WebSocket- Returns:
- appropriate EventDriver for this websocket instance.
-
-