Framework Professional Edition Package


org.mbs.services.cu.generator
Class ServiceObject

java.lang.Object
  extended by org.mbs.services.cu.generator.ServiceObject
Direct Known Subclasses:
DefaultControlUnit, DefaultControlUnitFactory

public abstract class ServiceObject
extends java.lang.Object

This is a super class for default implementations of ManagedControlUnit and ControlUnitFactory services. It handles service registration/unregistration in the OSGi framework.

Since:
$Date: 2005/07/28 12:10:19 $
Author:
Stoyan Zoubev

Method Summary
protected abstract  void fillDefaultProperties(java.util.Dictionary props)
          This method is invoked when service is registed.
 void registerService(org.osgi.framework.BundleContext bc, java.util.Dictionary props)
          Register this object as an OSGi service in the framework.
 void unregisterService()
          Unregister this object as an OSGi service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

registerService

public void registerService(org.osgi.framework.BundleContext bc,
                            java.util.Dictionary props)
Register this object as an OSGi service in the framework.

Parameters:
bc - a BundleContext instance with which the service will be registered

unregisterService

public void unregisterService()
Unregister this object as an OSGi service.


fillDefaultProperties

protected abstract void fillDefaultProperties(java.util.Dictionary props)
This method is invoked when service is registed. The implementation of the method should put the necessary properties in the given props dictionary. For control units these default properties are type and id.

Parameters:
props - dictionary where default properties are stored.

Framework Professional Edition Package


Copyright © 1999-2007 ProSyst Software GmbH. All Rights Reserved