02.05.2014 Views

CoreandServices.book - Ocean - Schlumberger

CoreandServices.book - Ocean - Schlumberger

CoreandServices.book - Ocean - Schlumberger

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CoreSystem Class<br />

Modules<br />

The CoreSystem Modules property provides access to the <strong>Ocean</strong> Core<br />

ModuleManager class. ModuleManager is used to hold a collection of module<br />

implementations and maintain their lifecycles. Details are available in “Module Manager”<br />

on page 3-22.<br />

AddModules Method<br />

The <strong>Ocean</strong> Core keeps a collection of module references for modules that have been<br />

added to the system. Modules are normally added at startup through references in the<br />

applications configuration file. However, there are cases that require modules to be added<br />

programmatically in response to some user interaction. In such a case the modules may<br />

be added using CoreSystem.AddModules. Doing so requires that a ModuleTrust be<br />

provided for the modules being added. See “Module Trust” on page 3-38 for more detail.<br />

When modules are added, their lifecycles are brought up to the current state of the<br />

system. If the system state is IntegratePresentation, then this is the state to which<br />

the added modules will be brought. Usually the state will be running if the addition is<br />

triggered by a user action, but it is not required that this be the case.<br />

3-46 <strong>Ocean</strong> Application Development Framework 2008.1<br />

<strong>Schlumberger</strong> Private

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!