Dali Provisional API
Release 3.2

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

All Superinterfaces:
InterruptibleCommand
All Known Subinterfaces:
NotifyingRepeatingCommand, RepeatingCommand
All Known Implementing Classes:
Command.Disabled, Command.Null, NotifyingRepeatingCommand.Null, RepeatingCommand.Null

public interface Command
extends InterruptibleCommand

Simple interface for implementing the GOF Command design pattern, and it doesn't carry the baggage of Runnable.

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 Command.Disabled
          Singleton implementation of the command interface that will throw an exception when executed.
static class Command.Null
          Singleton implementation of the command interface that will do nothing when executed.
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.common.utility.command.InterruptibleCommand
InterruptibleCommand.Interrupted
 
Method Summary
 void execute()
          Execute the command.
 

Method Detail

execute

void execute()
Execute the command. The semantics of the command is determined by the contract between the client and server.

Specified by:
execute in interface InterruptibleCommand

Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.