CommandHandler.java revision 608:7e06bf1dcb09
1100384Speter/* 2100384Speter * Copyright (c) 1997, 2002, Oracle and/or its affiliates. All rights reserved. 3100384Speter * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4100384Speter * 5100384Speter * This code is free software; you can redistribute it and/or modify it 6100384Speter * under the terms of the GNU General Public License version 2 only, as 7100384Speter * published by the Free Software Foundation. Oracle designates this 8100384Speter * particular file as subject to the "Classpath" exception as provided 9100384Speter * by Oracle in the LICENSE file that accompanied this code. 10100384Speter * 11100384Speter * This code is distributed in the hope that it will be useful, but WITHOUT 12100384Speter * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13100384Speter * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14100384Speter * version 2 for more details (a copy is included in the LICENSE file that 15100384Speter * accompanied this code). 16100384Speter * 17100384Speter * You should have received a copy of the GNU General Public License version 18100384Speter * 2 along with this work; if not, write to the Free Software Foundation, 19100384Speter * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20100384Speter * 21100384Speter * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22100384Speter * or visit www.oracle.com if you need additional information or have any 23100384Speter * questions. 24100384Speter */ 25100384Speterpackage com.sun.corba.se.impl.activation; 26100384Speter 27100384Speterimport org.omg.CORBA.ORB; 28100384Speter 29104738Speterimport java.io.PrintStream; 30104738Speter 31100384Speter/** 32100384Speter * @author Rohit Garg 33100384Speter * @since JDK1.2 34100384Speter */ 35100384Speter 36100384Speterpublic interface CommandHandler 37100384Speter{ 38100384Speter String getCommandName(); 39100384Speter 40100384Speter public final static boolean shortHelp = true; 41100384Speter public final static boolean longHelp = false; 42100384Speter 43100384Speter void printCommandHelp(PrintStream out, boolean helpType); 44100384Speter 45100384Speter public final static boolean parseError = true; 46100384Speter public final static boolean commandDone = false; 47100384Speter 48100384Speter boolean processCommand(String[] cmd, ORB orb, PrintStream out); 49100384Speter} 50100384Speter