Writing application commands

Giving an application a command line interface is straightforward.

When the launcher connects to an application it looks to see if the service offers an IConsoleFacet. If so it binds to it and the application's commands are then available at the console command line.

As a simple example, the SkeletonServiceProvider plugin (Section [*]) offers two facets as part of the ``skeleton'' service, including the IConsoleFacet. This contains a command line command to get the application's message. The other facet is ISkeletonFacet, which makes the message available to an application via a method call, getMessage().



Subsections
Nik Silver 2002-03-09