refactoring mit DAO, Controller und DMXDevices
This commit is contained in:
parent
842f3aa8e8
commit
6609d1a44b
|
@ -1,4 +1,4 @@
|
||||||
package de.ctdo.control;
|
package de.ctdo.bunti.control;
|
||||||
|
|
||||||
public interface BroadcastListener {
|
public interface BroadcastListener {
|
||||||
void Broadcast(String message);
|
void Broadcast(String message);
|
|
@ -1,10 +1,10 @@
|
||||||
package de.ctdo.control;
|
package de.ctdo.bunti.control;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import net.sf.json.JSONObject;
|
import net.sf.json.JSONObject;
|
||||||
import de.ctdo.dmx.DMXMixer;
|
import de.ctdo.bunti.dmx.DMXMixer;
|
||||||
|
|
||||||
public class BuntiController {
|
public class BuntiController {
|
||||||
static BuntiController instance = new BuntiController();
|
static BuntiController instance = new BuntiController();
|
|
@ -1,4 +1,4 @@
|
||||||
package de.ctdo.dmx;
|
package de.ctdo.bunti.dmx;
|
||||||
|
|
||||||
public interface DMXDataChangedListener {
|
public interface DMXDataChangedListener {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package de.ctdo.web;
|
package de.ctdo.bunti.web;
|
||||||
|
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@ -1,4 +1,4 @@
|
||||||
package de.ctdo.websocket;
|
package de.ctdo.bunti.websocket;
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
@ -10,7 +10,7 @@ import com.sun.grizzly.websockets.WebSocket;
|
||||||
import com.sun.grizzly.websockets.WebSocketApplication;
|
import com.sun.grizzly.websockets.WebSocketApplication;
|
||||||
import com.sun.grizzly.websockets.WebSocketListener;
|
import com.sun.grizzly.websockets.WebSocketListener;
|
||||||
|
|
||||||
import de.ctdo.control.BuntiController;
|
import de.ctdo.bunti.control.BuntiController;
|
||||||
|
|
||||||
@Component
|
@Component
|
||||||
public class BuntiControllerApplication extends WebSocketApplication {
|
public class BuntiControllerApplication extends WebSocketApplication {
|
|
@ -1,4 +1,4 @@
|
||||||
package de.ctdo.websocket;
|
package de.ctdo.bunti.websocket;
|
||||||
|
|
||||||
import javax.servlet.ServletConfig;
|
import javax.servlet.ServletConfig;
|
||||||
import javax.servlet.ServletException;
|
import javax.servlet.ServletException;
|
|
@ -1,4 +1,4 @@
|
||||||
package de.ctdo.websocket;
|
package de.ctdo.bunti.websocket;
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
@ -7,7 +7,7 @@ import com.sun.grizzly.websockets.DefaultWebSocket;
|
||||||
import com.sun.grizzly.websockets.ProtocolHandler;
|
import com.sun.grizzly.websockets.ProtocolHandler;
|
||||||
import com.sun.grizzly.websockets.WebSocketListener;
|
import com.sun.grizzly.websockets.WebSocketListener;
|
||||||
|
|
||||||
import de.ctdo.control.BroadcastListener;
|
import de.ctdo.bunti.control.BroadcastListener;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Ein DMXControllerWebSocket gehoert immer zu einem Browserfenster/Tab
|
* Ein DMXControllerWebSocket gehoert immer zu einem Browserfenster/Tab
|
Loading…
Reference in New Issue