Package: StandardCommandProcessor

StandardCommandProcessor

nameinstructionbranchcomplexitylinemethod
StandardCommandProcessor(CommandInvoker)
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%
createSession()
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%

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: * <p>
16: * StandardCommandProcessor
17: * </p>
18: *
19: * <strong>Concurrent Semantics</strong><br />
20: *
21: * StandardCommandProcessor is Thread safe
22: *
23: */
24: final class StandardCommandProcessor implements CommandProcessor {
25:
26: private final CommandInvoker commandInvoker;
27:
28: /**
29: * @param commandInvoker
30: */
31: StandardCommandProcessor(CommandInvoker commandInvoker) {
32: this.commandInvoker = commandInvoker;
33: }
34:
35: /**
36: * {@inheritDoc}
37: */
38: public CommandSession createSession() {
39: return new StandardCommandSession(commandInvoker);
40: }
41: }