org.ow2.jonas.lib.jmbeans
Class MBeansRegistration

java.lang.Object
  extended by org.ow2.jonas.lib.jmbeans.MBeansRegistration

public class MBeansRegistration
extends Object

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

Author:
Adriana Danes, Francois Fornaciari

Constructor Summary
MBeansRegistration()
           
 
Method Summary
 void setConfigurationManager(ConfigurationManager configManager)
           
 void setJ2EEServer(J2EEServerService j2eeServer)
           
 void setJmxService(JmxService jmxService)
           
 void setServerProperties(ServerProperties serverProperties)
           
 void setServiceManager(ServiceManager serviceManager)
           
 void start()
          Start bundle.
 void stop()
          Stop the bundle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBeansRegistration

public MBeansRegistration()
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.

setJmxService

public void setJmxService(JmxService jmxService)
Parameters:
jmxService - the jmxService to set

setServerProperties

public void setServerProperties(ServerProperties serverProperties)
Parameters:
serverProperties - the serverProperties to set

setServiceManager

public void setServiceManager(ServiceManager serviceManager)
Parameters:
serviceManager - reference to the serviceManager

setJ2EEServer

public void setJ2EEServer(J2EEServerService j2eeServer)
Parameters:
j2eeServer - the j2eeServer to set

setConfigurationManager

public void setConfigurationManager(ConfigurationManager configManager)
Parameters:
configManager - the configManager to set


Copyright © 2010 OW2 Consortium. All Rights Reserved.