Source code: com/lutris/multiServer/Service.java
1 /*
2 * Enhydra Java Application Server Project
3 *
4 * The contents of this file are subject to the Enhydra Public License
5 * Version 1.1 (the "License"); you may not use this file except in
6 * compliance with the License. You may obtain a copy of the License on
7 * the Enhydra web site ( http://www.enhydra.org/ ).
8 *
9 * Software distributed under the License is distributed on an "AS IS"
10 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
11 * the License for the specific terms governing rights and limitations
12 * under the License.
13 *
14 * The Initial Developer of the Enhydra Application Server is Lutris
15 * Technologies, Inc. The Enhydra Application Server and portions created
16 * by Lutris Technologies, Inc. are Copyright Lutris Technologies, Inc.
17 * All Rights Reserved.
18 *
19 * Contributor(s):
20 *
21 * $Id: Service.java,v 1.2.4.1 2000/10/19 17:59:08 jasona Exp $
22 */
23
24 package com.lutris.multiServer;
25
26 /**
27 * This interface is a temporary placeholder until we design a real
28 * service interface based on J2EE or XS or something else.
29 *
30 * @author Shawn McMurdo
31 */
32 public interface Service {
33
34 /**
35 * Initialize the service.
36 * Passes a configuration string to the service, which is used in a service
37 * dependent way. This could be a configuration file name or URL.
38 *
39 * @param config
40 * a configuration string which is service dependent.
41 */
42 public void init(String config);
43
44 /**
45 * Starts the service.
46 */
47 public void start();
48
49 /**
50 * Stops the service.
51 */
52 public void stop();
53
54 }
55