02.05.2014 Views

CoreandServices.book - Ocean - Schlumberger

CoreandServices.book - Ocean - Schlumberger

CoreandServices.book - Ocean - Schlumberger

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CoreSystem Class<br />

• Teardown<br />

Setup will set up the entire system. It receives a SystemFactory object as an<br />

argument. It is equivalent to running SetupBase followed by SetupPresentation.<br />

SetupBase will set up only the base part of the system. It receives a SystemFactory<br />

object as an argument.<br />

SetupPresentation receives no arguments. It sets up the presentation part of the<br />

system. It must be called sometime after SetupBase has been executed. The system<br />

must be in the IntegratePresentation stage when SetupPresentation is called<br />

or it will throw a SystemInitializationException exception. The sequence of<br />

SetupBase followed by SetupPresentation is useful when a product family needs to<br />

do some additional work in between the loading and initialization of the <strong>Ocean</strong> modules<br />

and their integration into the UI of the product family.<br />

Teardown will tear down the system and reset it. The system has to be in a running state<br />

when it is called or a SystemInitializationException exception will be thrown.<br />

Once the system is torn down it will be reset<br />

3-52 <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!