org.apache.servicemix.nmr.api.internal
Interface InternalReference

All Superinterfaces:
Reference

public interface InternalReference
extends Reference

Since:
4.0
Version:
$Revision: $

Method Summary
 java.lang.Iterable<InternalEndpoint> choose(EndpointRegistry registry)
          Creates an iterator to be used for choosing the physical target for an exchange.
 
Methods inherited from interface org.apache.servicemix.nmr.api.Reference
toXml
 

Method Detail

choose

java.lang.Iterable<InternalEndpoint> choose(EndpointRegistry registry)
Creates an iterator to be used for choosing the physical target for an exchange. When dispatching an exchange, the NMR will select the first endpoint and choose a flow that can handle it. If no flow can be used, try the next endpoint until no more endpoints can be used.

Returns:
an iterator on matching endpoints


Copyright © 2005-2009 The Apache Software Foundation. All Rights Reserved.