Class ServerEndpointExporter

All Implemented Interfaces:
Aware, InitializingBean, SmartInitializingSingleton, ApplicationContextAware, ServletContextAware

public class ServerEndpointExporter extends WebApplicationObjectSupport implements InitializingBean, SmartInitializingSingleton
Detects beans of type ServerEndpointConfig and registers with the standard Jakarta WebSocket runtime. Also detects beans annotated with ServerEndpoint and registers them as well. Although not required, it is likely annotated endpoints should have their configurator property set to SpringConfigurator.

When this class is used, by declaring it in Spring configuration, it should be possible to turn off a Servlet container's scan for WebSocket endpoints. This can be done with the help of the <absolute-ordering> element in web.xml.

Since:
4.0
Author:
Rossen Stoyanchev, Juergen Hoeller
See Also: