|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.geronimo.kernel.basic.BasicDependencyManager
DependencyManager is the record keeper of the dependencies in Geronimo. The DependencyManager does not enforce any dependencies, it is simply a place where components can register their intent to be dependent on another component. Since a JMX Component can pretty much do whatever it wants a component must watch the components it depends on to assure that they are following the J2EE-Management state machine.
The DependencyManager uses the nomenclature of parent-child where a child is dependent on a parent. The names parent and child have no other meaning are just a convience to make the code readable.
Constructor Summary | |
BasicDependencyManager(LifecycleMonitor lifecycleMonitor)
|
Method Summary | |
void |
addDependencies(org.apache.geronimo.gbean.AbstractName child,
Set parents)
Adds dependencies from the child to every parent in the parents set |
void |
addDependency(org.apache.geronimo.gbean.AbstractName child,
org.apache.geronimo.gbean.AbstractName parent)
Declares a dependency from a child to a parent. |
void |
close()
Closes the dependency manager releasing all resources |
Set |
getChildren(org.apache.geronimo.gbean.AbstractName parent)
Gets all of the MBeans that have a dependency on the specified startParent. |
Set |
getParents(org.apache.geronimo.gbean.AbstractName child)
Gets the set of parents that the child is depending on |
void |
removeAllDependencies(org.apache.geronimo.gbean.AbstractName child)
Removes all dependencies for a child |
void |
removeDependency(org.apache.geronimo.gbean.AbstractName child,
org.apache.geronimo.gbean.AbstractName parent)
Removes a dependency from a child to a parent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BasicDependencyManager(LifecycleMonitor lifecycleMonitor) throws Exception
Method Detail |
public void close()
DependencyManager
close
in interface DependencyManager
public void addDependency(org.apache.geronimo.gbean.AbstractName child, org.apache.geronimo.gbean.AbstractName parent)
addDependency
in interface DependencyManager
child
- the dependent componentparent
- the component the child is depending onpublic void removeDependency(org.apache.geronimo.gbean.AbstractName child, org.apache.geronimo.gbean.AbstractName parent)
removeDependency
in interface DependencyManager
child
- the dependnet componentparent
- the component that the child wil no longer depend onpublic void removeAllDependencies(org.apache.geronimo.gbean.AbstractName child)
removeAllDependencies
in interface DependencyManager
child
- the component that will no longer depend on anythingpublic void addDependencies(org.apache.geronimo.gbean.AbstractName child, Set parents)
addDependencies
in interface DependencyManager
child
- the dependent componentparents
- the set of components the child is depending onpublic Set getParents(org.apache.geronimo.gbean.AbstractName child)
getParents
in interface DependencyManager
child
- the dependent component
public Set getChildren(org.apache.geronimo.gbean.AbstractName parent)
getChildren
in interface DependencyManager
parent
- the component the returned childen set depend on
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |