Home » geronimo-2.2-source-release » org.apache.geronimo.kernel » [javadoc | source]
org.apache.geronimo.kernel
public interface: DependencyManager [javadoc | source]

All Known Implementing Classes:
    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.

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 from org.apache.geronimo.kernel.DependencyManager Summary:
addDependencies,   addDependency,   close,   getChildren,   getParents,   removeAllDependencies,   removeDependency
Method from org.apache.geronimo.kernel.DependencyManager Detail:
 public  void addDependencies(AbstractName child,
    Set parents)
    Adds dependencies from the child to every parent in the parents set
 public  void addDependency(AbstractName child,
    AbstractName parent)
    Declares a dependency from a child to a parent.
 public  void close()
    Closes the dependency manager releasing all resources
 public Set getChildren(AbstractName parent)
    Gets all of the MBeans that have a dependency on the specified startParent.
 public Set getParents(AbstractName child)
    Gets the set of parents that the child is depending on
 public  void removeAllDependencies(AbstractName child)
    Removes all dependencies for a child
 public  void removeDependency(AbstractName child,
    AbstractName parent)
    Removes a dependency from a child to a parent