From e59207ad371db3895b36d85b6717f12a9cb7b275 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjetil=20=C3=98rbekk?= Date: Thu, 23 Feb 2012 13:52:22 +0100 Subject: Change StateChangedListener. --- same/src/main/java/com/orbekk/same/Client.java | 2 +- same/src/main/java/com/orbekk/same/StateChangedListener.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'same/src/main/java') 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); } -- cgit v1.2.3