Interface ModuleContext


  • public interface ModuleContext
    Provides information on requirements bound in a module.
    See Also:
    GetModuleContext
    • Method Detail

      • getBindings

        List<ModuleContextBinding> getBindings()
        Returns the list of requirement bindings.
        Returns:
        the list of requirement bindings.
      • getBinding

        ModuleContextBinding getBinding​(URI uri)
        Return the binding for the specified requirement URI.
        Parameters:
        uri - the URI of a requirement bound in the module.
        Returns:
        the binding for the specified requirement URI, null if none.
      • getRoots

        List<ModuleContextBinding> getRoots()
        Returns the requirements rooted at the module.
        Returns:
        the root requirements bound in the module.
      • getChildren

        List<ModuleContextBinding> getChildren​(ModuleContextBinding parent)
        Return the child requirements of the specified binding.
        Parameters:
        parent - the binding of a parent requirement.
        Returns:
        the child requirements of the specified binding.
      • getParent

        ModuleContextBinding getParent​(ModuleContextBinding child)
        Return the parent binding of the specified child requirement.
        Parameters:
        child - a requirement bound in the module.
        Returns:
        the parent binding of the specified child requirement, null if none.