| Modifier and Type | Field and Description |
|---|---|
| private final ModuleLoader | |
| private volatile Map | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | ClassifyingModuleLoader(final String name, final Map<String, ModuleLoader>
the default delegates map to use delegates, final ModuleLoader the default loader to use if no delegate mapping exists defaultLoader)Construct a new instance. |
| Modifier and Type | Method and Description |
|---|---|
| protected ModuleSpec | findModule(final String
the module name name)Overrides org. |
| protected Module | preloadModule(String
the module identifier name)Overrides org. |
| public void | setDelegates(Map<String, ModuleLoader>
the new delegates map to use delegates)Change the delegates map. |
| public String | toString()
Overrides org. |
| defaultLoader | back to summary |
|---|---|
| private final ModuleLoader defaultLoader | |
| delegates | back to summary |
|---|---|
| private volatile Map<String, ModuleLoader> delegates | |
| name | back to summary |
|---|---|
| private final String name | |
| ClassifyingModuleLoader | back to summary |
|---|---|
| public ClassifyingModuleLoader(final String name, final Map<String, ModuleLoader> delegates, final ModuleLoader defaultLoader) Construct a new instance. The given delegates map is copied.
| |
| findModule | back to summary |
|---|---|
| protected ModuleSpec findModule(final String name) throws ModuleLoadException Overrides org. Doc from org. Find a Module's specification in this ModuleLoader by its name. This can be overriden by sub-classes to implement the Module loading strategy for this loader. The default implementation iterates the module finders provided during construction.
If no module is found in this module loader with the given identifier, then this method should return
| |
| preloadModule | back to summary |
|---|---|
| protected Module preloadModule(String name) throws ModuleLoadException Overrides org. Doc from org. Preload a module based on an identifier. By default, delegation is only done for system and this method otherwise simply invokes
| |
| setDelegates | back to summary |
|---|---|
| public void setDelegates(Map<String, ModuleLoader> delegates) Change the delegates map. A copy is made of the given map.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from org. Get the string representation of this module loader.
| |