Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The example application is a very simple drawing program. The application, called the host, defines a SimpleShape service that it uses to draw shapes. Different implementations of the SimpleShape can be created to allow the application to draw different shapes. Each shape service has name and icon service properties that the application uses for handling the services. Available shapes are displayed in the applications tool bar. To draw a shape, click on its button in the tool bar and then click in the drawing canvas. Shapes cannot be resized, but they can be dragged around. When new shape services appear they are automatically added to the tool bar and they are automatically removed when the shape services disappear. Closing the applications window causes the framework and the JVM to shut down. The following is a screen shot of the application.

Image Added

Service-Based Application on top of the Framework

...