public ActiveMQTopic toActiveMQTopic(List<TopicExpressionType> topics) throws InvalidTopicException { if (topics == null || topics.isEmpty()) { return null; } int size = topics.size(); ActiveMQTopic[] childrenDestinations = new ActiveMQTopic[size]; for (int i = 0; i < size; i++) { childrenDestinations[i] = toActiveMQTopic(topics.get(i)); } ActiveMQTopic topic = new ActiveMQTopic(); topic.setCompositeDestinations(childrenDestinations); return topic; }
@Override public ActiveMQDestination onSend(String topicName) { ActiveMQTopic topic = new ActiveMQTopic(topicName); if (topic.isComposite()) { ActiveMQDestination[] composites = topic.getCompositeDestinations(); for (ActiveMQDestination composite : composites) { composite.setPhysicalName(prefix(composite.getPhysicalName())); } ActiveMQTopic result = new ActiveMQTopic(); result.setCompositeDestinations(composites); return result; } else { return new ActiveMQTopic(prefix(topicName)); } }
@Override public ActiveMQDestination onSend(String topicName) { ActiveMQTopic topic = new ActiveMQTopic(topicName); if (topic.isComposite()) { ActiveMQDestination[] composites = topic.getCompositeDestinations(); for (ActiveMQDestination composite : composites) { composite.setPhysicalName(prefix(composite.getPhysicalName())); } ActiveMQTopic result = new ActiveMQTopic(); result.setCompositeDestinations(composites); return result; } else { return new ActiveMQTopic(prefix(topicName)); } }
@Override public ActiveMQDestination onSend(String topicName) { ActiveMQTopic topic = new ActiveMQTopic(topicName); if (topic.isComposite()) { ActiveMQDestination[] composites = topic.getCompositeDestinations(); for (ActiveMQDestination composite : composites) { composite.setPhysicalName(prefix(composite.getPhysicalName())); } ActiveMQTopic result = new ActiveMQTopic(); result.setCompositeDestinations(composites); return result; } else { return new ActiveMQTopic(prefix(topicName)); } }