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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfindEntries(String path, String filePattern, int options) Returns entries in wiring this module loader is associated with.protected abstract booleanIs called byModule.start(Module.StartOptions...)when using theModule.StartOptions.LAZY_TRIGGERoption is used.protected abstract ClassLoaderReturns the class loader for this module loader.abstract booleanReturns true if the lazy trigger is set for this module loaderprotected abstract Collection<String>listResources(String path, String filePattern, int options) protected abstract voidloadFragments(Collection<ModuleRevision> fragments) Dynamically loads fragment revisions to this already resolved module loader.
- 
Constructor Details- 
ModuleLoaderpublic ModuleLoader()
 
- 
- 
Method Details- 
findEntriesReturns 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- Returns:
- TODO
- See Also:
 
- 
getClassLoaderReturns the class loader for this module loader. Anullvalue will be returned if this module loader is for a fragment.- Returns:
- The class loader for this module loader.
- See Also:
 
- 
getAndSetTriggerprotected abstract boolean getAndSetTrigger()Is called byModule.start(Module.StartOptions...)when using theModule.StartOptions.LAZY_TRIGGERoption is used.- Returns:
- false if the trigger was not previously set; otherwise true is returned
 
- 
isTriggerSetpublic 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
 
- 
loadFragmentsDynamically loads fragment revisions to this already resolved module loader.- Parameters:
- fragments- the fragments to load
 
 
-