Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Kapitel 6. OSGi Services > OSGi Services registrieren und deregistrieren

6.3. OSGi Services registrieren und deregistrieren

6.3.1. Registrieren von OSGi Services

Das Registrieren eines Objektes als OSGi Service erfolgt über eine der beiden register Service()-Methoden des BundleContext:

Listing 6-3. Serviceregistrierung über den Bundle Context

package org.osgi .framework;

  [...]

   public interface BundleContext {

      [...]
      public ServiceRegistration registerService(String clazz,
          Object service, Dictionary properties);
      public ServiceRegistration registerService(String[] clazzes,
         Object service, Dictionary properties);
      [...]
   }


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial