Interface IHostContainerSelector

All Known Implementing Classes:
HostContainerSelector

public interface IHostContainerSelector
Host container selector service contract. When an ECF RemoteServiceAdmin instance is asked to import a service (i.e. via RemoteServiceAdmin.exportService(ServiceReference, java.util.Map) ), the RSA first gets an instance of this service via the service registry, and then uses it to select an array of ECF host container instances by calling selectHostContainers.

The IRemoteServiceContainer array returned is then used to actually export the remote service (typically via IRemoteServiceContainerAdapter.registerRemoteService(String[], Object, java.util.Dictionary)

If no other instances of this service have been registered, a default instance of HostContainerSelector will be used. Note that this default instance is registered with the lowest possible priority, so that if other IHostContainerSelector instances are registered, they will be preferred/used over the default.