org.apache.servicemix.jbi.framework
Class SubscriptionRegistry

java.lang.Object
  extended by org.apache.servicemix.jbi.framework.SubscriptionRegistry

public class SubscriptionRegistry
extends Object

Maintains a registry of the applicable subscriptions currently active for the current components

Version:
$Revision: 564607 $

Constructor Summary
SubscriptionRegistry(Registry registry)
           
 
Method Summary
 InternalEndpoint deregisterSubscription(SubscriptionSpec subscription)
           
 List<InternalEndpoint> getMatchingSubscriptionEndpoints(MessageExchangeImpl exchange)
           
 void registerSubscription(SubscriptionSpec subscription, InternalEndpoint endpoint)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubscriptionRegistry

public SubscriptionRegistry(Registry registry)
Method Detail

registerSubscription

public void registerSubscription(SubscriptionSpec subscription,
                                 InternalEndpoint endpoint)
Parameters:
subscription -
endpoint -

deregisterSubscription

public InternalEndpoint deregisterSubscription(SubscriptionSpec subscription)
Parameters:
subscription -
Returns:
the ServiceEndpoint

getMatchingSubscriptionEndpoints

public List<InternalEndpoint> getMatchingSubscriptionEndpoints(MessageExchangeImpl exchange)
Parameters:
exchange -
Returns:
a List of matching endpoints - can return null if no matches


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