org.jboss.dependencies
Class DependencyManager

java.lang.Object
  |
  +--org.jboss.dependencies.DependencyManager

public class DependencyManager
extends java.lang.Object

Manages dependencies between MBeans. Loads an XML configuration file, and then starts a list of MBeans according to the dependencies in the file.

Version:
$Revision: 1.3 $
Author:
Aaron Mulder

Constructor Summary
DependencyManager()
          Initializes a DependencyManager.
 
Method Summary
 void loadXML(java.lang.String source)
          Loads dependency configuration from an XML string.
 void printDependencies()
          Prints all the dependencies to the console.
 void startMBeans(javax.management.MBeanServer server)
          Starts all the MBeans in a server in an order consistant with the dependencies.
 void stopMBeans(javax.management.MBeanServer server)
          Stops all the MBeans in a server in an order consistant with the dependencies.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DependencyManager

public DependencyManager()
Initializes a DependencyManager.
Method Detail

loadXML

public void loadXML(java.lang.String source)
Loads dependency configuration from an XML string.

startMBeans

public void startMBeans(javax.management.MBeanServer server)
Starts all the MBeans in a server in an order consistant with the dependencies.

stopMBeans

public void stopMBeans(javax.management.MBeanServer server)
Stops all the MBeans in a server in an order consistant with the dependencies.

printDependencies

public void printDependencies()
Prints all the dependencies to the console.


Copyright © 2000 The jBoss Organization. All Rights Reserved.