public class EventDriverFactory extends Object
Constructor and Description |
---|
EventDriverFactory(WebSocketPolicy policy) |
Modifier and Type | Method and Description |
---|---|
void |
addImplementation(EventDriverImpl impl) |
void |
clearImplementations() |
protected String |
getClassName(Object websocket) |
List<EventDriverImpl> |
getImplementations() |
boolean |
removeImplementation(EventDriverImpl impl) |
String |
toString() |
EventDriver |
wrap(Object websocket)
Wrap the given WebSocket object instance in a suitable EventDriver
|
public EventDriverFactory(WebSocketPolicy policy)
public void addImplementation(EventDriverImpl impl)
public void clearImplementations()
public List<EventDriverImpl> getImplementations()
public boolean removeImplementation(EventDriverImpl impl)
public EventDriver wrap(Object websocket)
websocket
- the websocket instance to wrap. Must either implement WebSocketListener
or be annotated with @WebSocket
Copyright © 1995-2015 Webtide. All Rights Reserved.