|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DependencyManager
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.
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.
| Method Summary | |
|---|---|
void |
addDependencies(AbstractName child,
Set parents)
Adds dependencies from the child to every parent in the parents set |
void |
addDependency(AbstractName child,
AbstractName parent)
Declares a dependency from a child to a parent. |
void |
close()
Closes the dependency manager releasing all resources |
Set |
getChildren(AbstractName parent)
Gets all of the MBeans that have a dependency on the specified startParent. |
Set |
getParents(AbstractName child)
Gets the set of parents that the child is depending on |
void |
removeAllDependencies(AbstractName child)
Removes all dependencies for a child |
void |
removeDependency(AbstractName child,
AbstractName parent)
Removes a dependency from a child to a parent |
| Method Detail |
|---|
void close()
void addDependency(AbstractName child,
AbstractName parent)
child - the dependent componentparent - the component the child is depending on
void removeDependency(AbstractName child,
AbstractName parent)
child - the dependnet componentparent - the component that the child wil no longer depend onvoid removeAllDependencies(AbstractName child)
child - the component that will no longer depend on anything
void addDependencies(AbstractName child,
Set parents)
child - the dependent componentparents - the set of components the child is depending onSet getParents(AbstractName child)
child - the dependent component
Set getChildren(AbstractName parent)
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 | |||||||||