41 lines
1.1 KiB
Java
41 lines
1.1 KiB
Java
package de.ctdo.bunti.websocket;
|
|
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.LoggerFactory;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
// das klappt so jedenfalls alles noch nicht :)
|
|
@Component
|
|
public class BuntiControllerServlet { // extends HttpServlet {
|
|
private static final long serialVersionUID = 1L;
|
|
Logger logger = LoggerFactory.getLogger(BuntiControllerServlet.class);
|
|
|
|
private BuntiControllerApplication app;
|
|
|
|
@Autowired
|
|
public void setApp(BuntiControllerApplication app) {
|
|
this.app = app;
|
|
}
|
|
|
|
|
|
|
|
public void BuntiControllerApplication() {
|
|
// WebSocketEngine.getEngine().register(app);
|
|
// logger.debug("registered BuntiControllerApplication");
|
|
}
|
|
|
|
// @Override
|
|
// public void init(ServletConfig config) throws ServletException {
|
|
// WebSocketEngine.getEngine().register(app);
|
|
// logger.debug("registered BuntiControllerApplication");
|
|
// }
|
|
//
|
|
// @Override
|
|
// public void destroy() {
|
|
// WebSocketEngine.getEngine().unregister(app);
|
|
// logger.debug("unregistered BuntiControllerApplication");
|
|
// }
|
|
|
|
}
|