Package org.eclipse.osgi.container
Class ModuleLoader
java.lang.Object
org.eclipse.osgi.container.ModuleLoader
A module loader is what connects a
ModuleWiring
to a real
classloader.- Since:
- 3.10
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfindEntries
(String path, String filePattern, int options) Returns entries in wiring this module loader is associated with.protected abstract boolean
Is called byModule.start(Module.StartOptions...)
when using theModule.StartOptions.LAZY_TRIGGER
option is used.protected abstract ClassLoader
Returns the class loader for this module loader.abstract boolean
Returns true if the lazy trigger is set for this module loaderprotected abstract Collection<String>
listResources
(String path, String filePattern, int options) protected abstract void
loadFragments
(Collection<ModuleRevision> fragments) Dynamically loads fragment revisions to this already resolved module loader.
-
Constructor Details
-
ModuleLoader
public ModuleLoader()
-
-
Method Details
-
findEntries
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 pathoptions
- 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
- Returns:
- TODO
- See Also:
-
getClassLoader
Returns the class loader for this module loader. Anull
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()Is called byModule.start(Module.StartOptions...)
when using theModule.StartOptions.LAZY_TRIGGER
option is used.- 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
Dynamically loads fragment revisions to this already resolved module loader.- Parameters:
fragments
- the fragments to load
-