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.

Custom Worksteps<br />

Implement IDescribedArgumentsSource on your argument package. You will write<br />

code that serves as an adapter between the <strong>Ocean</strong> interface and your existing class. It is<br />

your responsibility to produce the array of DescribedArgument objects.<br />

class Args : IDescribedArgumentsSource<br />

{<br />

public DescribedArgument[] DescribedArguments<br />

{<br />

get<br />

{<br />

// build a DescribedArgument object for each of your arguments<br />

// allocate an array and load the objects<br />

// return the array<br />

}<br />

}<br />

...<br />

}<br />

6-298 <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!