Class SimpleCommand
java.lang.Object
org.puremvc.java.patterns.observer.Notifier
org.puremvc.java.patterns.command.SimpleCommand
public class SimpleCommand extends Notifier implements ICommand
A base ICommand
implementation.
Your subclass should override the execute
method where your business logic will handle the INotification
.
- See Also:
Controller
,Notification
,MacroCommand
-
Field Summary
-
Constructor Summary
Constructors Constructor Description SimpleCommand()
-
Method Summary
Modifier and Type Method Description void
execute(INotification notification)
Fulfill the use-case initiated by the givenINotification
.Methods inherited from class org.puremvc.java.patterns.observer.Notifier
sendNotification, sendNotification, sendNotification
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.puremvc.java.interfaces.INotifier
sendNotification, sendNotification, sendNotification
-
Constructor Details
-
SimpleCommand
public SimpleCommand()
-
-
Method Details
-
execute
Fulfill the use-case initiated by the given
INotification
.In the Command Pattern, an application use-case typically begins with some user action, which results in an
INotification
being broadcast, which is handled by business logic in theexecute
method of anICommand
.
-