source code formatting.
[utils] / system / spring / src / test / java / org / wamblee / system / spring / BlaService.java
1 /*
2  * Copyright 2007 the original author or authors.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 package org.wamblee.system.spring;
17
18 /**
19  * DOCUMENT ME!
20  *
21  * @author $author$
22  * @version $Revision$
23  */
24 public class BlaService {
25     /**
26      * DOCUMENT ME!
27      */
28     private HelloService hello;
29
30 /**
31      * Creates a new BlaService object.
32      *
33      * @param aService DOCUMENT ME!
34      */
35     public BlaService(HelloService aService) {
36         if (aService == null) {
37             throw new IllegalArgumentException("helloService is null");
38         }
39
40         hello = aService;
41     }
42
43     /**
44      * DOCUMENT ME!
45      *
46      * @return DOCUMENT ME!
47      */
48     public String execute() {
49         return hello.say();
50     }
51
52     /**
53      * DOCUMENT ME!
54      */
55     public void stop() {
56         System.out.println("Blaservice stopping");
57     }
58 }