Protected Module preloadExportedModule( ModuleIdentifier identifier) Throws: ModuleLoadException - if an error occurs Returns: the load result, or null if the module is not found Parameters: identifier - the module identifier Loader based on loader-specific criteria (via the preloadModule(ModuleIdentifier, ModuleLoader) method). A delegating module loader may delegate to the appropriate module By default, no delegation is done and this method simply invokes Throws ModuleLoadException Preload a module based on an identifier. Protected Module preloadModule( ModuleIdentifier identifier) Throws: ModuleLoadException - if the Module can not be loaded Parameters: identifier - The module identifier This method delegates to preloadModule(ModuleIdentifier) and then Throws ModuleLoadException Load a module based on an identifier. Public final Module loadModule( ModuleIdentifier identifier) Overrides: toString in class Object Returns: the string representation Public abstract String toString() Get the string representation of this module loader.
Parameters: classLoader - the class loader Public static ModuleLoader forClassLoader( ClassLoader classLoader) Get the module loader for a class loader. Public static ModuleLoader forClass( Class clazz) Get the module loader for a class. Protected ModuleLoader() Construct a new instance. ObjectĬlone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait Get the string representation of this module loader. The new modules This is an advanced method that should be used carefully, Replaces the dependencies for the specified module and relinks against Internal path list that is derived from the loaders. Replaces the resources loaders for the specified module and refreshes the SetAndRefreshResourceLoaders( Module module, Relinks the dependencies associated with the specified Module. Refreshes the paths provided by resource loaders associated with the Utility method to delegate to another module loader, accessible from subclasses. PreloadModule( ModuleIdentifier identifier, PreloadModule( ModuleIdentifier identifier) Preload an "exported" module based on an identifier. PreloadExportedModule( ModuleIdentifier identifier) Try to load a module from this module loader. LoadModuleLocal( ModuleIdentifier identifier) Get the module loader for a class loader. GreeneįindLoadedModuleLocal( ModuleIdentifier identifier)įind an already-loaded module, returning null if the module isn't currently loaded.įindModule( ModuleIdentifier moduleIdentifier)įind a Module's specification in this ModuleLoader by its identifier. Module loaders may additionallyĭelegate to one or more other module loaders.Īuthor: David M. Public abstract class ModuleLoader extends ObjectĪ repository for modules, from which a module may be loaded by identifier. SUMMARY: NESTED | FIELD | CONSTR | METHODĬlass ModuleLoader Direct Known Subclasses: ClassifyingModuleLoader, LocalModuleLoader, SystemClassPathModuleLoader ModuleLoader (JBoss Modules 1.0.1.GA API)