org.apache.servicemix.jbi.resolver
Class EndpointResolverSupport

java.lang.Object
  extended by org.apache.servicemix.jbi.resolver.EndpointResolverSupport
All Implemented Interfaces:
org.apache.servicemix.jbi.api.EndpointResolver
Direct Known Subclasses:
ExternalInterfaceNameEndpointResolver, ExternalServiceNameEndpointResolver, InterfaceNameEndpointResolver, ServiceAndEndpointNameResolver, ServiceNameEndpointResolver, URIResolver

public abstract class EndpointResolverSupport
extends Object
implements EndpointResolver

A useful base class for EndpointResolver implementations.

Version:
$Revision: 690190 $

Constructor Summary
EndpointResolverSupport()
           
 
Method Summary
protected abstract  javax.jbi.JBIException createServiceUnavailableException()
           
protected  javax.jbi.servicedesc.ServiceEndpoint[] filterEndpoints(javax.jbi.servicedesc.ServiceEndpoint[] endpoints, javax.jbi.messaging.MessageExchange exchange, org.apache.servicemix.jbi.api.EndpointFilter filter)
           
 EndpointChooser getChooser()
           
 boolean isFailIfUnavailable()
           
 javax.jbi.servicedesc.ServiceEndpoint resolveEndpoint(javax.jbi.component.ComponentContext context, javax.jbi.messaging.MessageExchange exchange, org.apache.servicemix.jbi.api.EndpointFilter filter)
           
 void setChooser(EndpointChooser chooser)
           
 void setFailIfUnavailable(boolean failIfUnavailable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.servicemix.jbi.api.EndpointResolver
resolveAvailableEndpoints
 

Constructor Detail

EndpointResolverSupport

public EndpointResolverSupport()
Method Detail

resolveEndpoint

public javax.jbi.servicedesc.ServiceEndpoint resolveEndpoint(javax.jbi.component.ComponentContext context,
                                                             javax.jbi.messaging.MessageExchange exchange,
                                                             org.apache.servicemix.jbi.api.EndpointFilter filter)
                                                      throws javax.jbi.JBIException
Specified by:
resolveEndpoint in interface org.apache.servicemix.jbi.api.EndpointResolver
Throws:
javax.jbi.JBIException

isFailIfUnavailable

public boolean isFailIfUnavailable()

setFailIfUnavailable

public void setFailIfUnavailable(boolean failIfUnavailable)

getChooser

public EndpointChooser getChooser()

setChooser

public void setChooser(EndpointChooser chooser)

createServiceUnavailableException

protected abstract javax.jbi.JBIException createServiceUnavailableException()

filterEndpoints

protected javax.jbi.servicedesc.ServiceEndpoint[] filterEndpoints(javax.jbi.servicedesc.ServiceEndpoint[] endpoints,
                                                                  javax.jbi.messaging.MessageExchange exchange,
                                                                  org.apache.servicemix.jbi.api.EndpointFilter filter)


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