com.mycorp.examples.timeservice.consumer
Class Activator

java.lang.Object
  extended by com.mycorp.examples.timeservice.consumer.Activator
All Implemented Interfaces:
org.osgi.framework.BundleActivator, org.osgi.util.tracker.ServiceTrackerCustomizer<ITimeService,ITimeService>

public class Activator
extends java.lang.Object
implements org.osgi.framework.BundleActivator, org.osgi.util.tracker.ServiceTrackerCustomizer<ITimeService,ITimeService>


Constructor Summary
Activator()
           
 
Method Summary
 ITimeService addingService(org.osgi.framework.ServiceReference<ITimeService> reference)
          NOTE: The method will be called when the ITimeService is discovered.
 void modifiedService(org.osgi.framework.ServiceReference<ITimeService> reference, ITimeService service)
           
 void removedService(org.osgi.framework.ServiceReference<ITimeService> reference, ITimeService service)
           
 void start(org.osgi.framework.BundleContext context)
           
 void stop(org.osgi.framework.BundleContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Activator

public Activator()
Method Detail

start

public void start(org.osgi.framework.BundleContext context)
           throws java.lang.Exception
Specified by:
start in interface org.osgi.framework.BundleActivator
Throws:
java.lang.Exception

stop

public void stop(org.osgi.framework.BundleContext context)
          throws java.lang.Exception
Specified by:
stop in interface org.osgi.framework.BundleActivator
Throws:
java.lang.Exception

addingService

public ITimeService addingService(org.osgi.framework.ServiceReference<ITimeService> reference)
NOTE: The method will be called when the ITimeService is discovered.

Specified by:
addingService in interface org.osgi.util.tracker.ServiceTrackerCustomizer<ITimeService,ITimeService>

modifiedService

public void modifiedService(org.osgi.framework.ServiceReference<ITimeService> reference,
                            ITimeService service)
Specified by:
modifiedService in interface org.osgi.util.tracker.ServiceTrackerCustomizer<ITimeService,ITimeService>

removedService

public void removedService(org.osgi.framework.ServiceReference<ITimeService> reference,
                           ITimeService service)
Specified by:
removedService in interface org.osgi.util.tracker.ServiceTrackerCustomizer<ITimeService,ITimeService>