org.apache.ws.notification.topics.util
Class TopicUtils

java.lang.Object
  extended byorg.apache.ws.notification.topics.util.TopicUtils

public class TopicUtils
extends java.lang.Object

TODO


Constructor Summary
TopicUtils()
           
 
Method Summary
static Topic addResourcePropertyValueChangeTopic(org.apache.ws.resource.properties.ResourceProperty prop, TopicSpaceSet topicSpaceSet)
          Adds a topic for the specified property to the specified topic set.
static Topic[] addResourcePropertyValueChangeTopics(org.apache.ws.resource.properties.ResourcePropertySet propSet, TopicSpaceSet topicSpaceSet)
          Adds topics for all non-readonly properties from the specified property set to the specified topic set.
static Topic addResourceTerminationTopic(TopicSpaceSet topicSpaceSet, org.apache.ws.resource.Resource resource, org.apache.ws.resource.properties.NamespaceVersionHolder namespaces)
          Adds the topic for ResoruceTermination....there should be only one of these!
static void initNotificationProducerProperties(TopicSpaceSet topicSpaceSet, org.apache.ws.resource.properties.ResourcePropertySet propSet)
          Initializes the Topic, TopicExpressionDialects and FixedTopicSet resource properties
NOTE this MUST be called last in the Resource.init() method to ensure all topics get registered
FixedTopicSet will be set based on the value returned from the TopicSpaceSet.isFixed() method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TopicUtils

public TopicUtils()
Method Detail

addResourceTerminationTopic

public static Topic addResourceTerminationTopic(TopicSpaceSet topicSpaceSet,
                                                org.apache.ws.resource.Resource resource,
                                                org.apache.ws.resource.properties.NamespaceVersionHolder namespaces)
                                         throws java.lang.Exception
Adds the topic for ResoruceTermination....there should be only one of these!

Parameters:
topicSpaceSet -
Returns:
Throws:
java.lang.Exception

addResourcePropertyValueChangeTopic

public static Topic addResourcePropertyValueChangeTopic(org.apache.ws.resource.properties.ResourceProperty prop,
                                                        TopicSpaceSet topicSpaceSet)
                                                 throws java.lang.Exception
Adds a topic for the specified property to the specified topic set.

Parameters:
prop -
topicSpaceSet -
Returns:
Throws:
java.lang.Exception

addResourcePropertyValueChangeTopics

public static Topic[] addResourcePropertyValueChangeTopics(org.apache.ws.resource.properties.ResourcePropertySet propSet,
                                                           TopicSpaceSet topicSpaceSet)
                                                    throws java.lang.Exception
Adds topics for all non-readonly properties from the specified property set to the specified topic set.

Parameters:
propSet -
topicSpaceSet -
Returns:
Throws:
java.lang.Exception

initNotificationProducerProperties

public static void initNotificationProducerProperties(TopicSpaceSet topicSpaceSet,
                                                      org.apache.ws.resource.properties.ResourcePropertySet propSet)
Initializes the Topic, TopicExpressionDialects and FixedTopicSet resource properties
NOTE this MUST be called last in the Resource.init() method to ensure all topics get registered
FixedTopicSet will be set based on the value returned from the TopicSpaceSet.isFixed() method.
Topic will have all root topics in the TopicSpaceSet, set to Simple dialect AND all child topics set ot Concrete dialect.
TopicExpressionDialects will be set to the engine's known Topic Dialects acquired from the TopicExpressionEngine

Parameters:
topicSpaceSet -
propSet -


Copyright © 2004-2005 Apache Software Foundation. All Rights Reserved.