aboutsummaryrefslogtreecommitdiff
path: root/juick-ws/src/main/java/com/juick/ws/StatusController.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-07-19 23:37:01 +0300
committerGravatar Vitaly Takmazov2016-07-19 23:37:01 +0300
commitf7a94873f2572247b34d25bf4ab4434b7d7cfc1a (patch)
tree6186c5ddf4f2eeb2e957d173967de7c744fd2981 /juick-ws/src/main/java/com/juick/ws/StatusController.java
parent507db78d7e16dddf6c1f798b131ac389f685d5df (diff)
juick-ws: name of property should match the bean to inject the same instance
Diffstat (limited to 'juick-ws/src/main/java/com/juick/ws/StatusController.java')
-rw-r--r--juick-ws/src/main/java/com/juick/ws/StatusController.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/juick-ws/src/main/java/com/juick/ws/StatusController.java b/juick-ws/src/main/java/com/juick/ws/StatusController.java
index 3f1de413..b212af19 100644
--- a/juick-ws/src/main/java/com/juick/ws/StatusController.java
+++ b/juick-ws/src/main/java/com/juick/ws/StatusController.java
@@ -14,10 +14,10 @@ import javax.inject.Inject;
@ResponseBody
public class StatusController {
@Inject
- WebsocketComponent websocketComponent;
+ WebsocketComponent wsHandler;
@RequestMapping(method = RequestMethod.GET, headers = "Connection!=Upgrade", value = "/")
public String status() {
- return String.format("Clients: %d", websocketComponent.clients.size());
+ return String.format("Clients: %d", wsHandler.clients.size());
}
}