summaryrefslogtreecommitdiff
path: root/same/src/main/java
diff options
context:
space:
mode:
authorKjetil Ørbekk <kjetil.orbekk@gmail.com>2012-02-23 13:52:22 +0100
committerKjetil Ørbekk <kjetil.orbekk@gmail.com>2012-02-23 13:52:22 +0100
commite59207ad371db3895b36d85b6717f12a9cb7b275 (patch)
tree995fc017039d9a5d9794ef507e525d8c68a05125 /same/src/main/java
parent750b58b3b7fad5ec068d43e39d74d55eb52e5058 (diff)
Change StateChangedListener.
Diffstat (limited to 'same/src/main/java')
-rw-r--r--same/src/main/java/com/orbekk/same/Client.java2
-rw-r--r--same/src/main/java/com/orbekk/same/StateChangedListener.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/same/src/main/java/com/orbekk/same/Client.java b/same/src/main/java/com/orbekk/same/Client.java
index 2d77434..4c03f31 100644
--- a/same/src/main/java/com/orbekk/same/Client.java
+++ b/same/src/main/java/com/orbekk/same/Client.java
@@ -54,7 +54,7 @@ public class Client implements DiscoveryListener {
boolean status = state.update(component, data, revision);
if (status) {
if (stateListener != null) {
- stateListener.stateChanged(component, data);
+ stateListener.stateChanged(state.getComponent(component));
}
} else {
logger.warn("Ignoring update: {}",
diff --git a/same/src/main/java/com/orbekk/same/StateChangedListener.java b/same/src/main/java/com/orbekk/same/StateChangedListener.java
index deb9369..3c72e7f 100644
--- a/same/src/main/java/com/orbekk/same/StateChangedListener.java
+++ b/same/src/main/java/com/orbekk/same/StateChangedListener.java
@@ -1,5 +1,5 @@
package com.orbekk.same;
public interface StateChangedListener {
- void stateChanged(String id, String data);
+ void stateChanged(State.Component component);
}