1 24 package org.objectweb.joram.mom.dest.bridge; 25 26 import java.util.Properties ; 27 28 import org.objectweb.joram.mom.dest.DestinationImpl; 29 import org.objectweb.joram.mom.dest.Topic; 30 31 import fr.dyade.aaa.agent.AgentId; 32 import fr.dyade.aaa.agent.Notification; 33 34 40 public class BridgeTopic extends Topic { 41 42 45 public BridgeTopic() { 46 super(); 47 fixed = true; 48 } 49 50 58 public DestinationImpl createsImpl(AgentId adminId, Properties prop) { 59 BridgeTopicImpl topicImpl = new BridgeTopicImpl(getId(), adminId, prop); 60 return topicImpl; 61 } 62 63 68 public void react(AgentId from, Notification not) 69 throws Exception { 70 if (not instanceof BridgeDeliveryNot) 71 ((BridgeTopicImpl) destImpl).bridgeDeliveryNot(from, (BridgeDeliveryNot) not); 72 else if (not instanceof BridgeAckNot) 73 ((BridgeTopicImpl) destImpl).bridgeAckNot((BridgeAckNot) not); 74 else 75 super.react(from, not); 76 } 77 } 78 | Popular Tags |