KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > nanocontainer > testmodel > WebServerConfigBean


1 /*****************************************************************************
2  * Copyright (C) NanoContainer Organization. All rights reserved. *
3  * ------------------------------------------------------------------------- *
4  * The software in this package is published under the terms of the BSD *
5  * style license a copy of which has been included with this distribution in *
6  * the LICENSE.txt file. *
7  * *
8  * Original code by Aslak Hellesoy and Paul Hammant *
9  *****************************************************************************/

10
11 package org.nanocontainer.testmodel;
12
13
14 public class WebServerConfigBean implements WebServerConfig {
15
16     private int port;
17     private String JavaDoc host;
18
19     public void setHost(String JavaDoc host) {
20         this.host = host;
21     }
22
23     public void setPort(int port) {
24         this.port = port;
25     }
26
27     public String JavaDoc getHost() {
28         return host;
29     }
30
31     public int getPort() {
32         return port;
33     }
34
35 }
36
Popular Tags