org.eclipse.ecf.osgi.services.distribution
Interface IHostDistributionListener

All Known Implementing Classes:
LoggingHostDistributionListener

public interface IHostDistributionListener

Listener for host distribution events. Services registered with this as their service interface will have their methods called when the distribution implementation events occur.

Since:
1.1

Method Summary
 void registered(org.osgi.framework.ServiceReference serviceReference, IRemoteServiceContainer remoteServiceContainer, IRemoteServiceRegistration remoteRegistration)
          Event indicating that a remote service has been registered, with the given local serviceReference, the given remoteServiceContainer, and the given remoteRegistration.
 void unregistered(org.osgi.framework.ServiceReference serviceReference, IRemoteServiceRegistration remoteRegistration)
          Event indicating that a remote service has been unregistered.
 

Method Detail

registered

void registered(org.osgi.framework.ServiceReference serviceReference,
                IRemoteServiceContainer remoteServiceContainer,
                IRemoteServiceRegistration remoteRegistration)
Event indicating that a remote service has been registered, with the given local serviceReference, the given remoteServiceContainer, and the given remoteRegistration.

Parameters:
serviceReference - the ServiceReference of the locally registered service. Will not be null.
remoteServiceContainer - the remoteServiceContainer that is doing the distribution for this remote service. Will not be null.
remoteRegistration - The remote service registration created with successful registration with the remoteServiceContainer. Will not be null.

unregistered

void unregistered(org.osgi.framework.ServiceReference serviceReference,
                  IRemoteServiceRegistration remoteRegistration)
Event indicating that a remote service has been unregistered.

Parameters:
serviceReference - the ServiceReference of the locally registered service. Will not be null.
remoteRegistration - The remote service registration previously created upon registration. Will not be null.