Do the given action with the given service.
Do the given action with the given service.
This should be used in preference to #locate when possible as it will allow the service locator to add in things like circuit breakers.
It is required that the service locator will, based on the service call circuit breaker configuration, wrap the invocation of the passed in block with a circuit breaker.
The name of the service.
The service call descriptor that this lookup is for.
A block of code that takes the URI for the service, and returns a future of some work done on the service. This will only be executed if the service was found.
The result of the executed block, if the service was found.
Do the given block with the given service looked up.
Do the given block with the given service looked up.
This is invoked by doWithService(), after wrapping the passed in block in a circuit breaker if configured to do so.
The default implementation just delegates to the locate() method, but this method can be overridden if the service locator wants to inject other behaviour after the service call is complete.
The service name.
The service call that needs the service lookup.
A block of code that will use the looked up service, typically, to make a call on that service.
A future of the result of the block, if the service lookup was successful.
Locate a service with the given name.
Locate a service with the given name.
The name of the service.
The service call descriptor that this lookup is for.
The URI for that service, if it exists.
Locate a service with the given name.
Locate a service with the given name.
The name of the service.
The URI for that service, if it exists.
A static service locator, that always resolves the same URI.