blob: 1c95bd1ec6e63fdf74bbe6a04fa25185a945d774 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
/*******************************************************************************
* Copyright (c) 2009, 2012 Oracle. 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:
* Oracle - initial API and implementation
******************************************************************************/
package org.eclipse.jpt.common.utility.internal.command;
import org.eclipse.jpt.common.utility.command.CommandExecutor;
import org.eclipse.jpt.common.utility.command.StatefulCommandExecutor;
/**
* Straightforward implementation of {@link StatefulCommandExecutor}
* that executes commands immediately by default. This executor can
* also be used to adapt simple {@link CommandExecutor}s to the
* {@link StatefulCommandExecutor} interface, providing support for
* lifecycle state.
*/
public class SimpleStatefulCommandExecutor
extends AbstractStatefulCommandExecutor<CommandExecutor>
{
public SimpleStatefulCommandExecutor() {
this(CommandExecutor.Default.instance());
}
public SimpleStatefulCommandExecutor(CommandExecutor commandExecutor) {
super(commandExecutor);
}
}
|