Package | Description |
---|---|
org.openmrs.api.context |
This package describes the context framework through which
authentication is performed and services provided for the OpenMRS system.
|
org.openmrs.module |
OpenMRS Module classes
|
org.openmrs.module.web | |
org.openmrs.module.web.filter |
Modifier and Type | Method and Description |
---|---|
static Module |
Daemon.startModule(Module module)
This method should not be called directly.
|
Modifier and Type | Method and Description |
---|---|
static Module |
Daemon.startModule(Module module)
This method should not be called directly.
|
Modifier and Type | Field and Description |
---|---|
protected static java.util.Map<java.lang.String,Module> |
ModuleFactory.loadedModules |
protected static java.util.Map<Module,ModuleClassLoader> |
ModuleFactory.moduleClassLoaders |
protected static java.util.Map<java.lang.String,Module> |
ModuleFactory.startedModules |
Modifier and Type | Method and Description |
---|---|
protected static Module[] |
ModuleClassLoader.collectAwareOfModuleImports(Module module)
Get and cache the imports for this module.
|
protected static Module[] |
ModuleClassLoader.collectRequiredModuleImports(Module module)
Get and cache the imports for this module.
|
Module |
AdvicePoint.getModule() |
Module |
ModuleClassLoader.getModule() |
static Module |
ModuleFactory.getModuleById(java.lang.String moduleId) |
static Module |
ModuleFactory.getModuleByPackage(java.lang.String modulePackage) |
static Module |
ModuleUtil.getModuleForPath(java.lang.String path)
Gets the module that should handle a path.
|
static Module |
ModuleFactory.getStartedModuleById(java.lang.String moduleId) |
static Module |
ModuleFactory.loadModule(java.io.File moduleFile)
Add a module (in the form of a jar file) to the list of openmrs modules Returns null if an
error occurred and/or module was not successfully loaded
|
static Module |
ModuleFactory.loadModule(java.io.File moduleFile,
java.lang.Boolean replaceIfExists)
Add a module (in the form of a jar file) to the list of openmrs modules Returns null if an
error occurred and/or module was not successfully loaded
|
static Module |
ModuleFactory.loadModule(Module module,
java.lang.Boolean replaceIfExists)
Add a module to the list of openmrs modules
|
Module |
ModuleFileParser.parse()
Get the module
|
static Module |
ModuleFactory.startModule(Module module)
Runs through extensionPoints and then calls
BaseModuleActivator.willStart() on the
Module's activator. |
static Module |
ModuleFactory.startModuleInternal(Module module)
This method should not be called directly.
The ModuleFactory.startModule(Module) (and hence Daemon.startModule(Module) ) calls this
method in a new Thread and is authenticated as the Daemon userRuns through extensionPoints and then calls BaseModuleActivator.willStart() on the
Module's activator. |
static Module |
ModuleFactory.updateModule(Module mod)
Update the module: 1) Download the new module 2) Unload the old module 3) Load/start the new
module
|
Modifier and Type | Method and Description |
---|---|
static java.util.Collection<Module> |
ModuleFactory.getLoadedModules()
Returns all modules found/loaded into the system (started and not started)
|
static java.util.List<Module> |
ModuleFactory.getLoadedModulesCoreFirst()
Returns all modules found/loaded into the system (started and not started), with the core
modules at the start of that list
|
static java.util.Map<java.lang.String,Module> |
ModuleFactory.getLoadedModulesMap()
Returns all modules found/loaded into the system (started and not started) in the form of a
map
|
static java.util.Map<Module,ModuleClassLoader> |
ModuleFactory.getModuleClassLoaderMap()
Return all current classloaders keyed on module object
|
static java.util.Collection<Module> |
ModuleFactory.getModulesInStartOrder()
Gets a list of modules in the order they are supposed to be started.
|
static java.util.Collection<Module> |
ModuleFactory.getStartedModules()
Returns the modules that have been successfully started
|
static java.util.List<Module> |
ModuleFactory.getStartedModulesInOrder() |
static java.util.Map<java.lang.String,Module> |
ModuleFactory.getStartedModulesMap()
Returns the modules that have been successfully started in the form of a map<ModuleId,
Module>
|
static java.util.List<Module> |
ModuleFactory.stopModule(Module mod,
boolean skipOverStartedProperty,
boolean isFailedStartup)
Runs through the advice and extension points and removes from api.
skipOverStartedProperty should only be true when openmrs is stopping modules
because it is shutting down. |
Modifier and Type | Method and Description |
---|---|
protected static Module[] |
ModuleClassLoader.collectAwareOfModuleImports(Module module)
Get and cache the imports for this module.
|
protected static Module[] |
ModuleClassLoader.collectRequiredModuleImports(Module module)
Get and cache the imports for this module.
|
static java.io.File |
ModuleClassLoader.getLibCacheFolderForModule(Module module)
Get the library cache folder for the given module.
|
static ModuleClassLoader |
ModuleFactory.getModuleClassLoader(Module mod)
Get a module's classloader
|
static java.lang.String |
ModuleUtil.getPathForResource(Module module,
java.lang.String path)
Takes a global path and returns the local path within the specified module.
|
static java.util.SortedMap<java.lang.String,java.lang.String> |
SqlDiffFileParser.getSqlDiffs(Module module)
Get the diff map.
|
static boolean |
ModuleFactory.isModuleStarted(Module mod)
Checks whether the given module is activated
|
static void |
ModuleFactory.loadAdvice(Module module)
Loop over the given module's advice objects and load them into the Context This needs to be
called for all started modules after every restart of the Spring Application Context
|
static Module |
ModuleFactory.loadModule(Module module,
java.lang.Boolean replaceIfExists)
Add a module to the list of openmrs modules
|
static org.springframework.context.support.AbstractRefreshableApplicationContext |
ModuleUtil.refreshApplicationContext(org.springframework.context.support.AbstractRefreshableApplicationContext ctx,
boolean isOpenmrsStartup,
Module startedModule)
Refreshes the given application context "properly" in OpenMRS.
|
static Module |
ModuleFactory.startModule(Module module)
Runs through extensionPoints and then calls
BaseModuleActivator.willStart() on the
Module's activator. |
static Module |
ModuleFactory.startModuleInternal(Module module)
This method should not be called directly.
The ModuleFactory.startModule(Module) (and hence Daemon.startModule(Module) ) calls this
method in a new Thread and is authenticated as the Daemon userRuns through extensionPoints and then calls BaseModuleActivator.willStart() on the
Module's activator. |
static void |
ModuleFactory.stopModule(Module mod)
Runs through the advice and extension points and removes from api.
|
static void |
ModuleFactory.stopModule(Module mod,
boolean isShuttingDown)
Runs through the advice and extension points and removes from api.
Also calls mod.Activator.shutdown() |
static java.util.List<Module> |
ModuleFactory.stopModule(Module mod,
boolean skipOverStartedProperty,
boolean isFailedStartup)
Runs through the advice and extension points and removes from api.
skipOverStartedProperty should only be true when openmrs is stopping modules
because it is shutting down. |
static void |
ModuleFactory.unloadModule(Module mod)
Removes module from module repository
|
static Module |
ModuleFactory.updateModule(Module mod)
Update the module: 1) Download the new module 2) Unload the old module 3) Load/start the new
module
|
Constructor and Description |
---|
AdvicePoint(Module mod,
java.lang.String point,
java.lang.String className) |
ModuleClassLoader(Module module,
java.lang.ClassLoader parent)
Creates class instance configured to load classes and resources for given module.
|
ModuleClassLoader(Module module,
java.util.List<java.net.URL> urls) |
ModuleClassLoader(Module module,
java.util.List<java.net.URL> urls,
java.lang.ClassLoader parent) |
ModuleClassLoader(Module module,
java.util.List<java.net.URL> urls,
java.lang.ClassLoader parent,
java.net.URLStreamHandlerFactory factory) |
Modifier and Type | Method and Description |
---|---|
static void |
WebModuleUtil.loadFilters(Module module,
javax.servlet.ServletContext servletContext)
This method will initialize and store this module's filters
|
static void |
WebModuleUtil.loadServlets(Module mod,
javax.servlet.ServletContext servletContext)
This method will find and cache this module's servlets (so that it doesn't have to look them
up every time)
|
static org.springframework.web.context.support.XmlWebApplicationContext |
WebModuleUtil.refreshWAC(javax.servlet.ServletContext servletContext,
boolean isOpenmrsStartup,
Module startedModule)
Stops, closes, and refreshes the Spring context for the given
servletContext |
static boolean |
WebModuleUtil.startModule(Module mod,
javax.servlet.ServletContext servletContext,
boolean delayContextRefresh)
Performs the webapp specific startup needs for modules Normal startup is done in
ModuleFactory.startModule(Module) If delayContextRefresh is true, the spring context
is not rerun. |
static void |
WebModuleUtil.stopModule(Module mod,
javax.servlet.ServletContext servletContext)
Reverses all visible activities done by startModule(org.openmrs.module.Module)
|
static void |
WebModuleUtil.unloadFilters(Module module)
This method will destroy and remove all filters that were registered by the passed
Module |
static void |
WebModuleUtil.unloadServlets(Module mod)
Remove all of the servlets defined for this module
|
Modifier and Type | Method and Description |
---|---|
Module |
ModuleFilterDefinition.getModule() |
Module |
ModuleFilterMapping.getModule() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<ModuleFilterDefinition> |
ModuleFilterDefinition.retrieveFilterDefinitions(Module module)
Static method to parse through a Module's configuration file and return a List of
ModuleFilterDefinition objects for which there are configuration elements.
|
static java.util.List<ModuleFilterMapping> |
ModuleFilterMapping.retrieveFilterMappings(Module module)
Static method to parse through a Module's configuration file and return a List of
ModuleFilterMapping objects for which there are configuration elements.
|
void |
ModuleFilterDefinition.setModule(Module module) |
void |
ModuleFilterMapping.setModule(Module module) |
Constructor and Description |
---|
ModuleFilterDefinition(Module module)
Default constructor, requires a Module
|
ModuleFilterMapping(Module module)
Default constructor, requires a Module
|
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.