Class ModuleManager
java.lang.Object
org.nuxeo.ecm.webengine.model.impl.ModuleManager
- Author:
- Bogdan Stefanescu
-
Field Summary
Modifier and TypeFieldDescriptionprotected WebEngine
protected final Map<String,
ModuleConfiguration> protected final Map<String,
ModuleConfiguration> protected final Map<String,
ModuleConfiguration> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected static Context
createXMapContext
(WebEngine engine) Gets a module given its name.getModuleByConfigFile
(File file) getModuleByPath
(String path) getModuleByRootClass
(Class<?> clazz) protected ModuleConfiguration
loadConfiguration
(File file) void
loadModule
(File file) void
void
loadModuleFromDir
(File moduleRoot) void
void
loadModules
(File root) static ModuleConfiguration
readConfiguration
(WebEngine engine, File file) void
registerModule
(ModuleConfiguration descriptor) void
reloadModule
(String name) void
unregisterModule
(String name)
-
Field Details
-
modules
-
paths
-
roots
-
engine
-
-
Constructor Details
-
ModuleManager
-
-
Method Details
-
getModule
Gets a module given its name.- Returns:
- the module or null if none
-
getModuleByPath
-
getRootModule
-
getModules
-
getModuleByConfigFile
-
registerModule
-
unregisterModule
-
getModuleByRootClass
-
bind
-
loadModules
-
loadModule
-
loadModule
-
loadModuleFromDir
-
reloadModule
-
reloadModules
public void reloadModules() -
loadConfiguration
-
readConfiguration
- Throws:
IOException
-
loadModuleRootResources
-
createXMapContext
-