org.puremvc.java.patterns.command.SimpleCommand Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of PureMVC Show documentation
Show all versions of PureMVC Show documentation
PureMVC is a lightweight framework for creating applications
based upon the classic Model-View-Controller design
meta-pattern. This is the specific implementation for the Java
language. It does not support modular programming since it
uses Singletons as Core actors rather than the Multiton used in
the MultiCore Version.
The newest version!
//
// PureMVC Java Standard
//
// Copyright(c) 2019 Saad Shams
// Your reuse is governed by the Creative Commons Attribution 3.0 License
//
package org.puremvc.java.patterns.command;
import org.puremvc.java.interfaces.ICommand;
import org.puremvc.java.interfaces.INotification;
import org.puremvc.java.patterns.observer.Notifier;
/**
* A base ICommand
implementation.
*
* Your subclass should override the execute
* method where your business logic will handle the INotification
.
*
* @see org.puremvc.java.core.Controller Controller
* @see org.puremvc.java.patterns.observer.Notification Notification
* @see MacroCommand MacroCommand
*/
public class SimpleCommand extends Notifier implements ICommand {
/**
* 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 the execute
method of an
* ICommand
.
*
* @param notification the INotification
to handle.
*/
public void execute(INotification notification) {
}
}