ch.ethz.iks.slp.impl
Class Activator

java.lang.Object
  extended by ch.ethz.iks.slp.impl.Activator

public class Activator
extends Object

Bundle Activator, also serves as a ServiceFactory for Advertiser and Locator services and as listener for appearing log services to allow on-demand logging.

Author:
Jan S. Rellermeyer, ETH Zurich

Constructor Summary
Activator()
           
 
Method Summary
 Object getService(Bundle bundle, ch.ethz.iks.slp.impl.ServiceRegistration registration)
           
 void start(BundleContext context)
           
 void stop(BundleContext context)
           
 void ungetService(Bundle bundle, ch.ethz.iks.slp.impl.ServiceRegistration registration, Object service)
           
 
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(BundleContext context)
           throws Exception
Throws:
Exception
See Also:
org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)

stop

public void stop(BundleContext context)
          throws Exception
Throws:
Exception
See Also:
org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)

getService

public Object getService(Bundle bundle,
                         ch.ethz.iks.slp.impl.ServiceRegistration registration)
See Also:
org.osgi.framework.ServiceFactory#getService(org.osgi.framework.Bundle, org.osgi.framework.ServiceRegistration)

ungetService

public void ungetService(Bundle bundle,
                         ch.ethz.iks.slp.impl.ServiceRegistration registration,
                         Object service)
See Also:
org.osgi.framework.ServiceFactory#ungetService(org.osgi.framework.Bundle, org.osgi.framework.ServiceRegistration, java.lang.Object)