Author: wire
Date: Tue Aug 9 13:00:02 2005
New Revision: 231092
URL: http://svn.apache.org/viewcvs?rev=231092&view=rev
Log:
Now Status change also causes behavior of temp callback to change.
Modified:
webservices/muse/trunk/src/examples/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/OpStatusChanger.java
Modified:
webservices/muse/trunk/src/examples/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/OpStatusChanger.java
URL:
http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/OpStatusChanger.java?rev=231092&r1=231091&r2=231092&view=diff
==============================================================================
---
webservices/muse/trunk/src/examples/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/OpStatusChanger.java
(original)
+++
webservices/muse/trunk/src/examples/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/OpStatusChanger.java
Tue Aug 9 13:00:02 2005
@@ -1,7 +1,10 @@
package org.wsdmdemo.service.weatherStation;
+import org.apache.ws.resource.PropertiesResource;
+import org.apache.ws.resource.properties.ResourceProperty;
import
org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.OperationalStatusDocument;
import org.wsdmdemo.service.InteropConstants;
+import org.wsdmdemo.service.weatherStation.callbacks.TemperatureCallback;
/**
@@ -39,7 +42,12 @@
;
}
-
m_weatherStation.changeOperationalStatus(OperationalStatusDocument.OperationalStatus.AVAILABLE);
+
m_weatherStation.changeOperationalStatus(OperationalStatusDocument.OperationalStatus.AVAILABLE);
+
+ PropertiesResource propResource =
(PropertiesResource)m_weatherStation.getResource();
+ ResourceProperty resProp =
propResource.getResourcePropertySet().get(WeatherStationPropertyQNames.TEMPERATURE);
+ TemperatureCallback callback =
(TemperatureCallback)resProp.getCallBack();
+ callback.setNormalBehavior();
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]