KickJava   Java API By Example, From Geeks To Geeks.

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


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  *****************************************************************************/

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