public interface WebSocketBeanRegistry
| Modifier and Type | Field and Description |
|---|---|
static WebSocketBeanRegistry |
EMPTY
An empty registry.
|
| Modifier and Type | Method and Description |
|---|---|
static WebSocketBeanRegistry |
forClient(BeanContext beanContext)
Create a
WebSocketBeanRegistry from the given bean context. |
static WebSocketBeanRegistry |
forServer(BeanContext beanContext)
Create a
WebSocketBeanRegistry from the given bean context. |
<T> WebSocketBean<T> |
getWebSocket(Class<T> type)
Retrieves a
WebSocketBean. |
static final WebSocketBeanRegistry EMPTY
<T> WebSocketBean<T> getWebSocket(Class<T> type)
WebSocketBean.T - The generic typetype - The typeWebSocketBeanNoSuchBeanException - if the bean doesn't existstatic WebSocketBeanRegistry forServer(BeanContext beanContext)
WebSocketBeanRegistry from the given bean context.beanContext - The bean contextWebSocketBeanRegistrystatic WebSocketBeanRegistry forClient(BeanContext beanContext)
WebSocketBeanRegistry from the given bean context.beanContext - The bean contextWebSocketBeanRegistry