Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Below is the break down of the methods that are provided by the new ModuleActivator interface and abstract class. Please see the openmrs-modules-basicmodule Basic Module for a code example of how to register and write module activators for your modules.

...

  • startup()
    Called after a module has been loaded but before the application context is refreshed, at this point the module's service methods aren't yet available so they can't be called, so calls like 'Context.getMyService()' will return null.
    As of 1.7.0, this method will be authenticated as the Daemon user and have all privileges.
  • shutdown()
    Called after a module is stopped.