Dali Provisional API
Release 3.2

org.eclipse.jpt.common.utility.command
Interface CommandExecutor

All Known Subinterfaces:
CombinedCommandExecutor, CombinedExtendedCommandExecutor, ExtendedCommandExecutor, StatefulCommandExecutor, StatefulExtendedCommandExecutor
All Known Implementing Classes:
CombinedCommandExecutor.Default, CombinedCommandExecutor.Inactive, CombinedExtendedCommandExecutor.Default, CombinedExtendedCommandExecutor.Inactive, CommandExecutor.Default, CommandExecutor.Inactive, ExtendedCommandExecutor.Default, ExtendedCommandExecutor.Inactive

public interface CommandExecutor

This interface allows clients to control how a command is executed. This is useful when the server provides the command but the client provides the context (e.g. the client would like to dispatch the command to the UI thread).

Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.


Nested Class Summary
static class CommandExecutor.Default
          Singleton implementation of the command executor interface that simply executes the command without any sort of enhancement.
static class CommandExecutor.Inactive
          Singleton implementation of the command executor interface that ignores any commands.
 
Method Summary
 void execute(Command command)
          Execute the specified command, synchronously or asynchronously.
 

Method Detail

execute

void execute(Command command)
Execute the specified command, synchronously or asynchronously. The commands themselves must be executed in the order in which they are passed to the command executor (at least when passed from clients executing on the same thread).


Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.