/*******************************************************************************
* Copyright (c) 2008, 2010 VMware Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* VMware Inc. - initial contribution
*******************************************************************************/
package org.eclipse.virgo.shell.internal.commands;
import java.util.Arrays;
import java.util.List;
import org.eclipse.virgo.shell.Command;
/**
* Provides a dummy place-holder for the exit command. <br/>
* Since the exit command is treated specially by the command processor, this implementation cannot be invoked from the
* shell. The existence of this definition implies that there can be help for it, which is automatically found and
* displayed (by help) and that another command for 'exit' cannot be defined without a clash.
* <p />
*
* <strong>Concurrent Semantics</strong><br />
*
* Severely thread-safe.
*
*/
@Command("exit")
public class ExitCommand {
@Command("")
public List<String> exit() {
return Arrays.asList("No-op exit command called.");
}
}