You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsrf-dev@ws.apache.org by ip...@apache.org on 2004/12/06 19:48:52 UTC

svn commit: r110004 - incubator/apollo/trunk/src/java/org/apache/ws/resource/properties

Author: ips
Date: Mon Dec  6 10:48:51 2004
New Revision: 110004

URL: http://svn.apache.org/viewcvs?view=rev&rev=110004
Log:
prop callback interfaces

Added:
   incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/ResourcePropertyCallback.java
   incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/SetResourcePropertyCallback.java
Modified:
   incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/ResourceProperty.java

Modified: incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/ResourceProperty.java
Url: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/ResourceProperty.java?view=diff&rev=110004&p1=incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/ResourceProperty.java&r1=110003&p2=incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/ResourceProperty.java&r2=110004
==============================================================================
--- incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/ResourceProperty.java	(original)
+++ incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/ResourceProperty.java	Mon Dec  6 10:48:51 2004
@@ -21,8 +21,9 @@
 import java.util.Iterator;
 
 /**
- * Represents a single resource property. A resource property can have multiple values and can be converted into a DOM
- * <code>Element</code> or <code>SOAPElement</code> array.
+ * Represents a single resource property. A resource property can have
+ * multiple values and can be converted into a DOM <code>Element</code>
+ * or <code>SOAPElement</code> array.
  */
 public interface ResourceProperty
 {
@@ -134,4 +135,11 @@
     * @return the XML representation of this property
     */
    String toXML(  );
+
+   /**
+    *
+    * @param callback
+    */
+   void registerCallback( ResourcePropertyCallback callback );
+
 }

Added: incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/ResourcePropertyCallback.java
Url: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/ResourcePropertyCallback.java?view=auto&rev=110004
==============================================================================
--- (empty file)
+++ incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/ResourcePropertyCallback.java	Mon Dec  6 10:48:51 2004
@@ -0,0 +1,40 @@
+/*=============================================================================*
+ *  Copyright 2004 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+package org.apache.ws.resource.properties;
+
+/**
+ * A callback that should be registered on any property whose value
+ * on the managed resource may change. Register the callback by calling
+ * {@link ResourceProperty#registerCallback(ResourcePropertyCallback)} on the
+ * property.
+ *
+ * @author Ian Springer (Hewlett-Packard Company)
+ */
+public interface ResourcePropertyCallback
+{
+
+    /**
+     * This method is called by the all of the WSRP PortType impls, prior
+     * to performing any work, in order to ensure the resource properties
+     * accurately reflect the current state of the managed resource.
+     *
+     * @param prop the property to be refreshed
+     *
+     * @return the refreshed property
+     */
+    ResourceProperty refreshProperty( ResourceProperty prop );
+
+}

Added: incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/SetResourcePropertyCallback.java
Url: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/SetResourcePropertyCallback.java?view=auto&rev=110004
==============================================================================
--- (empty file)
+++ incubator/apollo/trunk/src/java/org/apache/ws/resource/properties/SetResourcePropertyCallback.java	Mon Dec  6 10:48:51 2004
@@ -0,0 +1,50 @@
+/*=============================================================================*
+ *  Copyright 2004 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+package org.apache.ws.resource.properties;
+
+import javax.xml.namespace.QName;
+
+/**
+ * A callback that should be registered on any mutable properties (i.e.
+ * properties that support the WSRP SetResourceProperties operation).
+ * Register the callback by calling
+ * {@link ResourceProperty#registerCallback(ResourcePropertyCallback)} on the
+ * property.
+ *
+ * @author Ian Springer (Hewlett-Packard Company)
+ */
+public interface SetResourcePropertyCallback extends ResourcePropertyCallback
+{
+
+    /**
+     *
+     * @param propQName
+     */
+    void deleteProperty( QName propQName );
+
+    /**
+     *
+     * @param prop
+     */
+    void insertProperty( ResourceProperty prop );
+
+    /**
+     *
+     * @param prop
+     */
+    void updateProperty( ResourceProperty prop );
+
+}

---------------------------------------------------------------------
To unsubscribe, e-mail: apollo-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: apollo-dev-help@ws.apache.org