Skip to content

joemat/whiteboardpattern

Repository files navigation

Example: WhiteboardPattern with Java 8

An example implementation of the whiteboard pattern with Java 8 and OSGi declarative services annotations.

You need an Eclipse with the Declarative Services Annotations Support Plug-In to make the annotations work.

Running the example

  • Import the 4 projects
  • de.elinja.whiteboard.api
  • de.elinja.whiteboard.numberproducer
  • de.elinja.whiteboard.printer.bin
  • de.elinja.whiteboard.printer.hex into your Eclipse workspace.
  • In project de.elinja.whiteboard.numberproducer: Right-click WhiteboardPatternExample.launch in and select Run As WhiteboardPatternExample

The output of the sample should be

Sending no. 4711 to printers:

Hex => 1267
Bin => 1001001100111
Done.

Links

About

Example implementation of the whiteboard pattern in Java 8

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages