| org.apache.geronimo.kernel.DependencyManager
All known Subclasses: org.apache.geronimo.kernel.basic.BasicDependencyManager,
DependencyManager | public interface DependencyManager (Code) | | 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.
version: $Rev: 476049 $ $Date: 2006-11-16 20:35:17 -0800 (Thu, 16 Nov 2006) $ |
addDependencies | public void addDependencies(AbstractName child, Set parents)(Code) | | Adds dependencies from the child to every parent in the parents set
Parameters: child - the dependent component Parameters: parents - the set of components the child is depending on |
addDependency | public void addDependency(AbstractName child, AbstractName parent)(Code) | | Declares a dependency from a child to a parent.
Parameters: child - the dependent component Parameters: parent - the component the child is depending on |
close | public void close()(Code) | | Closes the dependency manager releasing all resources
|
getChildren | public Set getChildren(AbstractName parent)(Code) | | Gets all of the MBeans that have a dependency on the specified startParent.
Parameters: parent - the component the returned childen set depend on a collection containing all of the components that depend on the parent; will never be null |
getParents | public Set getParents(AbstractName child)(Code) | | Gets the set of parents that the child is depending on
Parameters: child - the dependent component a collection containing all of the components the child depends on; will never be null |
removeAllDependencies | public void removeAllDependencies(AbstractName child)(Code) | | Removes all dependencies for a child
Parameters: child - the component that will no longer depend on anything |
removeDependency | public void removeDependency(AbstractName child, AbstractName parent)(Code) | | Removes a dependency from a child to a parent
Parameters: child - the dependnet component Parameters: parent - the component that the child wil no longer depend on |
|
|