Reference Guide

Table Of Contents
Service Implementation
Implementation of our API or services will be located at the hm-bl module. As with hm-api, the
business logic module will also depend on the hm-model, as well as on the hm-api module. So
open the hm-bl/pom.xml file and add the XML extract from the following listing to the
<dependencies> node; after updating the POM file update the Eclipse project dependencies (see
Updating Project Dependencies on page 146).
Application API Dependency:
<dependency>
<groupId>com.hp.hm</groupId>
<artifactId>hm-model</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.hp.hm</groupId>
<artifactId>hm-api</artifactId>
<version>${project.version}</version>
</dependency>
Now, create the Open Flow Service implementation, name it SwitchManager The suffix
Manager is used to denote services implementations. The following listing shows an extract of the
implementation. For the moment it returns fake data, in later information the fake data is replaced
by more realistic data.
157