Package: CommandSession

CommandSession

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2008, 2010 VMware Inc.
3: * All rights reserved. This program and the accompanying materials
4: * are made available under the terms of the Eclipse Public License v1.0
5: * which accompanies this distribution, and is available at
6: * http://www.eclipse.org/legal/epl-v10.html
7: *
8: * Contributors:
9: * VMware Inc. - initial contribution
10: *******************************************************************************/
11:
12: package org.eclipse.virgo.shell.internal;
13:
14:
15: import java.util.List;
16:
17: /**
18: * This can take a typed command and figure out the correct Command to call or Completer to use if the command is not recognised.
19: *
20: * Implementations should be threadsafe
21: *
22: */
23: interface CommandSession
24: {
25: /**
26: * Execute a program in this session.
27: *
28: * @param commandline
29: * @return the result of the execution
30: * @throws Exception
31: */
32: List<String> execute(CharSequence commandline) throws Exception;
33:
34: }