Packageorg.ow2.kerneos.core.managers
Classpublic class ModulesLifeCycleManager
InheritanceModulesLifeCycleManager Inheritance Object

Manages the modules life cycle: setup, start, stop, give focus to a module... Also manage the shared libraries module loaders. Everything is kept in this class, even if this kind of module is never unloaded. It may be helpful in case of some monitoring features, like the number of shared libraries loaded, and how many modules are using them.



Public Methods
 MethodDefined By
  
bringToFront(module:ModuleVO):void
[static] Bring a module window to front
ModulesLifeCycleManager
  
closeModule(module:ModuleVO):void
[static] Close a module.
ModulesLifeCycleManager
  
[static] Close a module by its window.
ModulesLifeCycleManager
  
getModule(id:String):ModuleVO
[static] Get a module by his id.
ModulesLifeCycleManager
  
getModuleWindow(module:ModuleVO):ModuleWindow
[static] Get the window associated with the module.
ModulesLifeCycleManager
  
init(desktop:DesktopView):void
[static]
ModulesLifeCycleManager
  
installModule(module:ModuleVO, notify:Boolean = false):void
[static] Setup a module
ModulesLifeCycleManager
  
installModules(modules:ArrayCollection):void
[static] Setup the modules.
ModulesLifeCycleManager
  
[static] Launch the command to load the application modules.
ModulesLifeCycleManager
  
openModule(module:ModuleVO):void
[static] Start a module.
ModulesLifeCycleManager
  
stopModule(module:ModuleVO, cause:String = null):void
[static] Stop a module.
ModulesLifeCycleManager
  
stopModuleByWindow(window:ModuleWindow, cause:String = null):void
[static] Stop a module by its window.
ModulesLifeCycleManager
  
subscribe():void
[static] Subscribe a gravity consumer to the kerneos topic
ModulesLifeCycleManager
  
uninstallModule(module:ModuleVO, notify:Boolean = false):void
[static] Uninstall module
ModulesLifeCycleManager
  
uninstallModules(modules:ArrayCollection):void
[static] Delete the modules setup
ModulesLifeCycleManager
  
[static] Unload all application modules
ModulesLifeCycleManager
  
[static]
ModulesLifeCycleManager
Method Detail
bringToFront()method
public static function bringToFront(module:ModuleVO):void

Bring a module window to front

Parameters

module:ModuleVO

closeModule()method 
public static function closeModule(module:ModuleVO):void

Close a module.

Parameters

module:ModuleVO

closeModuleByWindow()method 
public static function closeModuleByWindow(window:ModuleWindow):void

Close a module by its window.

Parameters

window:ModuleWindow

getModule()method 
public static function getModule(id:String):ModuleVO

Get a module by his id.

Parameters

id:String

Returns
ModuleVO
getModuleWindow()method 
public static function getModuleWindow(module:ModuleVO):ModuleWindow

Get the window associated with the module.

Parameters

module:ModuleVO

Returns
ModuleWindow
init()method 
public static function init(desktop:DesktopView):void

Parameters

desktop:DesktopView

installModule()method 
public static function installModule(module:ModuleVO, notify:Boolean = false):void

Setup a module

Parameters

module:ModuleVO
 
notify:Boolean (default = false)

installModules()method 
public static function installModules(modules:ArrayCollection):void

Setup the modules.

Parameters

modules:ArrayCollection

loadModules()method 
public static function loadModules():void

Launch the command to load the application modules.

openModule()method 
public static function openModule(module:ModuleVO):void

Start a module.

Parameters

module:ModuleVO

stopModule()method 
public static function stopModule(module:ModuleVO, cause:String = null):void

Stop a module.

Parameters

module:ModuleVO
 
cause:String (default = null)

stopModuleByWindow()method 
public static function stopModuleByWindow(window:ModuleWindow, cause:String = null):void

Stop a module by its window.

Parameters

window:ModuleWindow
 
cause:String (default = null)

subscribe()method 
public static function subscribe():void

Subscribe a gravity consumer to the kerneos topic

uninstallModule()method 
public static function uninstallModule(module:ModuleVO, notify:Boolean = false):void

Uninstall module

Parameters

module:ModuleVO
 
notify:Boolean (default = false)

uninstallModules()method 
public static function uninstallModules(modules:ArrayCollection):void

Delete the modules setup

Parameters

modules:ArrayCollection

unloadModules()method 
public static function unloadModules():void

Unload all application modules

unsubscribe()method 
public static function unsubscribe():void