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
 void start()
           
 void stop()
          Stop the bundle.
 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
Throws:
Exception

stop

public void stop()
          throws Exception
Stop the bundle.

Throws:
Exception

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 properties
Throws:
Exception


Copyright © 2008 OW2 Consortium. All Rights Reserved.