ws-muse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sc...@apache.org
Subject svn commit: r179387 - in /incubator/muse/trunk/src: java/org/apache/ws/muws/MuwsUtils.java templates/v2004_12/Relationships-AbstractResource_init.txt
Date Wed, 01 Jun 2005 15:39:20 GMT
Author: scamp
Date: Wed Jun  1 08:39:18 2005
New Revision: 179387

URL: http://svn.apache.org/viewcvs?rev=179387&view=rev
Log: (empty)

Modified:
    incubator/muse/trunk/src/java/org/apache/ws/muws/MuwsUtils.java
    incubator/muse/trunk/src/templates/v2004_12/Relationships-AbstractResource_init.txt

Modified: incubator/muse/trunk/src/java/org/apache/ws/muws/MuwsUtils.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/java/org/apache/ws/muws/MuwsUtils.java?rev=179387&r1=179386&r2=179387&view=diff
==============================================================================
--- incubator/muse/trunk/src/java/org/apache/ws/muws/MuwsUtils.java (original)
+++ incubator/muse/trunk/src/java/org/apache/ws/muws/MuwsUtils.java Wed Jun  1 08:39:18 2005
@@ -37,13 +37,13 @@
      *
      * @throws Exception
      */
-    public static void addRelationshipTopics( TopicSpaceSet topicSet ) throws Exception
+    public static TopicSpace addRelationshipTopics( TopicSpaceSet topicSet ) throws Exception
     {
         TopicSpace topicSpace = new TopicSpaceImpl( MuwsConstants.NSURI_MUWS_PART2_TOPICS
);
         Topic topic = topicSpace.addTopic( RelationshipsCapability.TOPIC_NAME );
         topic.addTopic( RelationshipsCapability.SUBTOPIC_NAME_RELATIONSHIP_CREATED );
         topic.addTopic( RelationshipsCapability.SUBTOPIC_NAME_RELATIONSHIP_DELETED );
-        topicSet.addTopicSpace( topicSpace );
+        return topicSet.addTopicSpace( topicSpace );
     }
     
 }

Modified: incubator/muse/trunk/src/templates/v2004_12/Relationships-AbstractResource_init.txt
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/templates/v2004_12/Relationships-AbstractResource_init.txt?rev=179387&r1=179386&r2=179387&view=diff
==============================================================================
--- incubator/muse/trunk/src/templates/v2004_12/Relationships-AbstractResource_init.txt (original)
+++ incubator/muse/trunk/src/templates/v2004_12/Relationships-AbstractResource_init.txt Wed
Jun  1 08:39:18 2005
@@ -1,5 +1,11 @@
 #if ($notificationProducer)
-     //init the RelationshipsProperties Resource for sending Relationship events...NOTE:
THIS DOES NOT REGISTER THE TOPICS
-     org.apache.ws.muws.MuwsUtils.updateRelationshipResourceProperty(m_propSet, this);
+     /**
+      *init the RelationshipsProperties Resource for sending Relationship events...NOTE:
THIS DOES NOT REGISTER THE TOPICS
+      *
+      * NOTE: IF ADDING additional Topics to the Muws2 TopicSpace AFTER this method call,
make sure to use
+      * the returned muws2topics TopicSpace.  Anytime a TopicSpace is added to a TopicSpaceSet,
the set returns
+      * the Active handle to that TopicSpace and INVALIDATES the previous handle.
+      */
+     org.apache.ws.notification.topics.TopicSpace muws2topics =  org.apache.ws.muws.MuwsUtils.updateRelationshipResourceProperty(m_propSet,
this);
      
 #end



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


Mime
View raw message