01: /*
02: * Copyright 2001-2004 The Apache Software Foundation
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
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:
17: package org.apache.commons.daemon;
18:
19: /**
20: * Defines a set of methods that a Daemon instance can use to
21: * communicate with the Daemon container.
22: *
23: * @author Pier Fumagalli
24: * @author Copyright © 2000-2001 <a href="http://www.apache.org/">The
25: * Apache Software Foundation</a>. All rights reserved.
26: * @version 1.0 <i>(CVS $Revision: 155409 $)</i>
27: */
28: public interface DaemonContext {
29:
30: /**
31: * Returns <code>DaemonController</code> object that can be used
32: * to control the <code>Daemon</code> instance that this
33: * <code>DaemonContext</code> is passed to.
34: */
35: public DaemonController getController();
36:
37: /**
38: * Returns an array of <code>String</code> arguments supplied by
39: * the environment. corresponding to the array of arguments given
40: * in the <code>public static void main()</code> method used as an
41: * entry point to most other java programs.
42: */
43: public String[] getArguments();
44:
45: }
|