Class ModuleLoader

java.lang.Object
org.eclipse.osgi.container.ModuleLoader

public abstract class ModuleLoader extends Object
A module loader is what connects a ModuleWiring to a real classloader.
Since:
3.10
  • Constructor Details

    • ModuleLoader

      public ModuleLoader()
  • Method Details

    • findEntries

      protected abstract List<URL> findEntries(String path, String filePattern, int options)
      Returns entries in wiring this module loader is associated with.
      Parameters:
      path - The path name in which to look.
      filePattern - The file name pattern for selecting entries in the specified path
      options - The options for listing resource names.
      Returns:
      An unmodifiable list of URL objects for each matching entry, or an empty list if no matching entry could be found
      See Also:
    • listResources

      protected abstract Collection<String> listResources(String path, String filePattern, int options)
      Returns:
      TODO
      See Also:
    • getClassLoader

      protected abstract ClassLoader getClassLoader()
      Returns the class loader for this module loader. A null value will be returned if this module loader is for a fragment.
      Returns:
      The class loader for this module loader.
      See Also:
    • getAndSetTrigger

      protected abstract boolean getAndSetTrigger()
      Returns:
      false if the trigger was not previously set; otherwise true is returned
    • isTriggerSet

      public abstract boolean isTriggerSet()
      Returns true if the lazy trigger is set for this module loader
      Returns:
      true if the lazy trigger is set for this module loader
    • loadFragments

      protected abstract void loadFragments(Collection<ModuleRevision> fragments)
      Dynamically loads fragment revisions to this already resolved module loader.
      Parameters:
      fragments - the fragments to load