org.apache.ws.muws.v1_0.topics.impl
Class XmlBeansAdvertisementTopicImpl

java.lang.Object
  extended byorg.apache.ws.notification.topics.impl.TopicImpl
      extended byorg.apache.ws.muws.v1_0.topics.impl.XmlBeansAdvertisementTopicImpl
All Implemented Interfaces:
org.apache.ws.resource.ResourceCreationListener, org.apache.ws.resource.ResourceDestructionListener, org.apache.ws.notification.topics.Topic, org.apache.ws.notification.topics.TopicListener, org.apache.ws.notification.topics.TopicListenerList, org.apache.ws.notification.topics.TopicSet

public class XmlBeansAdvertisementTopicImpl
extends org.apache.ws.notification.topics.impl.TopicImpl
implements org.apache.ws.resource.ResourceCreationListener, org.apache.ws.resource.ResourceDestructionListener

An Advertisement Topic impl for Resource Creation and Deletion.

Author:
Sal Campana

Field Summary
 
Fields inherited from class org.apache.ws.notification.topics.impl.TopicImpl
m_currentMsg, m_listeners, m_name, m_reference, m_subTopics, m_topicPath, m_topicSpace
 
Constructor Summary
XmlBeansAdvertisementTopicImpl(java.lang.String s)
           
 
Method Summary
 void creationOccurred(org.apache.ws.resource.ResourceCreationEvent event)
          Handles the event when a creation occurs.
 void destructionOccurred(org.apache.ws.resource.ResourceDestructionEvent event)
          Handles the event when a destruction occurs.
 void publish(java.lang.Object o)
          Publishes an event to subscribers.
 
Methods inherited from class org.apache.ws.notification.topics.impl.TopicImpl
addTopic, addTopic, addTopicListener, containsTopic, getCurrentMessage, getName, getParent, getTopic, getTopicPath, getTopicReference, getTopicSpace, isReference, removeTopic, removeTopic, removeTopicListener, setTopicPath, setTopicReference, setTopicSpace, topicAdded, topicChanged, topicIterator, topicListenerIterator, topicRemoved, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XmlBeansAdvertisementTopicImpl

public XmlBeansAdvertisementTopicImpl(java.lang.String s)
Method Detail

publish

public void publish(java.lang.Object o)
             throws java.lang.Exception
Publishes an event to subscribers.

Specified by:
publish in interface org.apache.ws.notification.topics.Topic
Parameters:
o -
Throws:
java.lang.Exception

creationOccurred

public void creationOccurred(org.apache.ws.resource.ResourceCreationEvent event)
Handles the event when a creation occurs. Builds a CreationNotification and sends notif to subscribers

Specified by:
creationOccurred in interface org.apache.ws.resource.ResourceCreationListener
Parameters:
event -

destructionOccurred

public void destructionOccurred(org.apache.ws.resource.ResourceDestructionEvent event)
Handles the event when a destruction occurs. Builds a DestructionNotificationDocument and sends notif to subscribers

Specified by:
destructionOccurred in interface org.apache.ws.resource.ResourceDestructionListener
Parameters:
event -


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