Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
HelloWorldService |
|
| 1.0;1 |
1 | /* | |
2 | * Copyright (c) 2009, Swiss Federal Department of Defence Civil Protection and Sport | |
3 | * (http://www.vbs.admin.ch) | |
4 | * Copyright (c) 2009, Ergon Informatik AG (http://www.ergon.ch) | |
5 | * All rights reserved. | |
6 | * | |
7 | * Licensed under the Open Permis License which accompanies this distribution, | |
8 | * and is available at http://www.openpermis.org/BSDlicenceKent.txt | |
9 | */ | |
10 | package org.openpermis.examples.simple; | |
11 | ||
12 | ||
13 | /** | |
14 | * Defines the actual functionality of the HelloWorld application. | |
15 | * @since 0.1.0 | |
16 | */ | |
17 | public interface HelloWorldService { | |
18 | ||
19 | //---- Methods | |
20 | ||
21 | /** | |
22 | * Returns a welcome message for the specified person. | |
23 | * @param name the name of the person to greet. | |
24 | * @return a suitable welcome message. | |
25 | * @throws HelloWorldException if the service fails to determine a suitable welcome message. | |
26 | * @since 0.1.0 | |
27 | */ | |
28 | public String getHelloMessage (String name) throws HelloWorldException; | |
29 | ||
30 | } |