org.ow2.jonas.lib.jmbeans.osgi
Class MBeansRegistration

java.lang.Object
  extended by org.ow2.jonas.lib.jmbeans.osgi.MBeansRegistration
All Implemented Interfaces:
ServiceManagerUpdater

public class MBeansRegistration
extends Object
implements ServiceManagerUpdater

Activator for the bundle which creates the basic JSR77 MBeans. Provides an OSGi service to update service manager.

Author:
Adriana Danes

Constructor Summary
MBeansRegistration(org.osgi.framework.BundleContext bc)
          Constructor.
 
Method Summary
 org.ow2.jonas.versioning.VersioningService getVersioningService()
           
 void setVersioningService(org.ow2.jonas.versioning.VersioningService versioningService)
           
 void start()
          Start bundle.
 void stop()
          Stop the bundle.
 void unsetVersioningService()
          Sets the versioning service to null.
 void updateServiceManager(org.ow2.jonas.properties.ServerProperties props)
          Update ServiceManager with services state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBeansRegistration

public MBeansRegistration(org.osgi.framework.BundleContext bc)
Constructor.

Parameters:
bc - OSGi BundleContext.
Method Detail

start

public void start()
           throws Exception
Start bundle.

Throws:
Exception - could not start bundle.

stop

public void stop()
          throws Exception
Stop the bundle.

Throws:
Exception - could not stop the bundle.

updateServiceManager

public void updateServiceManager(org.ow2.jonas.properties.ServerProperties props)
                          throws Exception
Update ServiceManager with services state.

Specified by:
updateServiceManager in interface ServiceManagerUpdater
Parameters:
props - JONAS server properties.
Throws:
Exception

setVersioningService

public void setVersioningService(org.ow2.jonas.versioning.VersioningService versioningService)
Parameters:
versioningService - The versioning service to set.

unsetVersioningService

public void unsetVersioningService()
Sets the versioning service to null.


getVersioningService

public org.ow2.jonas.versioning.VersioningService getVersioningService()
Returns:
The versioning service.


Copyright © 2008 OW2 Consortium. All Rights Reserved.