Examples
The examples illustrate various features and capabilities of OfficeFloor.
All examples have respective sources that can be downloaded and run with Maven. To view and run the examples within an IDE, use the appropriate Maven setup for the IDE (for example run mvn eclipse:eclipse to use within Eclipse).
| Example | Description |
|---|---|
| Static HTTP server | HTTP Server for static web pages illustrating the opening and closing of an OfficeFloor. |
| Dynamic web page | Dynamic web pages which introduces the OfficeFloor concept of a task. |
| Interactive web page | Interactive web page demonstrating controlling order of task execution. |
| Navigate between pages | Provides navigation between pages which shows how to link sections. |
| Dependency injection for functionality | HTTP Server with dependency injection. |
| Team allocation within HTTP server | HTTP Server with assignment of team to execute tasks. A Team within OfficeFloor is in effect a thread pool and is the means to assign specific threads (thread pools) to execute specific tasks. |
| Running within Servlet Container | Running the above web functionality within a JEE Servlet container. |
| Utilising dependency injection of the Servlet Container | Use of Servlet container dependency injection (e.g. making use of EJBs). |
| Graphical web navigation configuration | Current focus of OfficeFloor development is providing graphical configuration to configure a web application. |
| Scripting languages | Future focus is to look at incorporating scripting languages (such as JRuby, Jython, Groovy) as logic for templates. |
Current focus of features being developed (or documented as examples) can be found at OfficeFloor features.