org.apache.servicemix.jbi.resolver
Class FirstChoicePolicy

java.lang.Object
  extended by org.apache.servicemix.jbi.resolver.FirstChoicePolicy
All Implemented Interfaces:
EndpointChooser

public class FirstChoicePolicy
extends Object
implements EndpointChooser

A simple selection policy where the first endpoint is chosen.

Version:
$Revision: 426415 $

Constructor Summary
FirstChoicePolicy()
           
 
Method Summary
 javax.jbi.servicedesc.ServiceEndpoint chooseEndpoint(javax.jbi.servicedesc.ServiceEndpoint[] endpoints, javax.jbi.component.ComponentContext context, javax.jbi.messaging.MessageExchange exchange)
          Chooses an endpoint from the array of 2 or more endpoints or returns null if none of them are acceptable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FirstChoicePolicy

public FirstChoicePolicy()
Method Detail

chooseEndpoint

public javax.jbi.servicedesc.ServiceEndpoint chooseEndpoint(javax.jbi.servicedesc.ServiceEndpoint[] endpoints,
                                                            javax.jbi.component.ComponentContext context,
                                                            javax.jbi.messaging.MessageExchange exchange)
Description copied from interface: EndpointChooser
Chooses an endpoint from the array of 2 or more endpoints or returns null if none of them are acceptable

Specified by:
chooseEndpoint in interface EndpointChooser


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