org.eclipse.ecf.osgi.services.distribution
Class LoggingHostDistributionListener

java.lang.Object
  extended by org.eclipse.ecf.osgi.services.distribution.AbstractDistributionListener
      extended by org.eclipse.ecf.osgi.services.distribution.LoggingHostDistributionListener
All Implemented Interfaces:
IHostDistributionListener

public class LoggingHostDistributionListener
extends AbstractDistributionListener
implements IHostDistributionListener


Field Summary
 
Fields inherited from class org.eclipse.ecf.osgi.services.distribution.AbstractDistributionListener
logLevel
 
Constructor Summary
LoggingHostDistributionListener()
           
 
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.
 
Methods inherited from class org.eclipse.ecf.osgi.services.distribution.AbstractDistributionListener
createTabs, getLogLevel, log, printID, printRemoteServiceContainer, printRemoteServiceReference, printRemoteServiceReferenceProperties, printRemoteServiceRegistration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingHostDistributionListener

public LoggingHostDistributionListener()
Method Detail

registered

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

Specified by:
registered in interface IHostDistributionListener
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

public void unregistered(org.osgi.framework.ServiceReference serviceReference,
                         IRemoteServiceRegistration remoteRegistration)
Description copied from interface: IHostDistributionListener
Event indicating that a remote service has been unregistered.

Specified by:
unregistered in interface IHostDistributionListener
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.