1 /*2 * Copyright 2001-2004 The Apache Software Foundation3 *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 at7 *8 * http://www.apache.org/licenses/LICENSE-2.09 *10 * Unless required by applicable law or agreed to in writing, software11 * 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 and14 * limitations under the License.15 */16 17 package org.apache.commons.daemon;18 19 20 /**21 * Defines a set of methods that a Daemon instance can use to22 * communicate with the Daemon container.23 *24 * @author Pier Fumagalli25 * @author Copyright © 2000-2001 <a HREF="http://www.apache.org/">The26 * Apache Software Foundation</a>. All rights reserved.27 * @version 1.0 <i>(CVS $Revision: 155409 $)</i>28 */29 public interface DaemonContext {30 31 /**32 * Returns <code>DaemonController</code> object that can be used33 * to control the <code>Daemon</code> instance that this34 * <code>DaemonContext</code> is passed to.35 */36 public DaemonController getController();37 38 /**39 * Returns an array of <code>String</code> arguments supplied by40 * the environment. corresponding to the array of arguments given41 * in the <code>public static void main()</code> method used as an42 * entry point to most other java programs.43 */44 public String [] getArguments();45 46 }47