public class SpringConfigurator
extends Configurator
javax.websocket.server.ServerEndpointConfig.Configurator
for initializing
ServerEndpoint
-annotated classes through Spring.
@ServerEndpoint(value = "/echo", configurator = SpringConfigurator.class) public class EchoEndpoint { // ... }
ServerEndpointExporter
Modifier and Type | Field and Description |
---|---|
private static java.util.Map<java.lang.String,java.util.Map<java.lang.Class<?>,java.lang.String>> |
cache |
private static Log |
logger |
private static java.lang.String |
NO_VALUE |
Constructor and Description |
---|
SpringConfigurator() |
Modifier and Type | Method and Description |
---|---|
private java.lang.String |
getBeanNameByType(WebApplicationContext wac,
java.lang.Class<?> endpointClass) |
<T> T |
getEndpointInstance(java.lang.Class<T> endpointClass) |
private static Log logger
private static final java.util.Map<java.lang.String,java.util.Map<java.lang.Class<?>,java.lang.String>> cache
private static final java.lang.String NO_VALUE
public <T> T getEndpointInstance(java.lang.Class<T> endpointClass) throws java.lang.InstantiationException
java.lang.InstantiationException
private java.lang.String getBeanNameByType(WebApplicationContext wac, java.lang.Class<?> endpointClass)