command-pattern Questions
3
Solved
I have been reading about using Command objects to represent use cases that our domain exposes, and Command Handler objects to process those commands.
For example:
RegisterUserCommand
RegisterUs...
Insphere asked 29/6, 2014 at 9:40
7
Solved
What is the difference between the Strategy pattern and the Command pattern? I am also looking for some examples in Java.
Diplodocus asked 29/1, 2011 at 3:33
4
Solved
I have controller that executes some commands according to command name, taken from url. The main point is in not to use if and switch clauses. As I know there are ONLY two ways how to do it - 1) c...
Knur asked 21/11, 2014 at 6:55
4
Solved
Is it possible implement the GOF command pattern using a Queue of Action delegates?
I have been trying to wrap my head around it for a while and I am stumped because each of the possible actions I...
Decameter asked 11/10, 2010 at 5:44
6
Solved
I'm trying to design an async framework and wanted to know what people think are the pros/cons of the callback pattern vs the observer pattern.
Callback pattern:
//example callback
public interfa...
Centrifuge asked 21/1, 2012 at 6:52
3
Solved
I've been writing ASP.NET MVC applications for some time and I found them to be a good place for using the command pattern: we represent every user request as a command - a set of input params - th...
Boot asked 30/10, 2015 at 8:7
13
Solved
My question is related to the command pattern, where we have the following abstraction (C# code) :
public interface ICommand
{
void Execute();
}
Let's take a simple concrete command, which aims...
Roseline asked 19/9, 2008 at 19:44
3
Solved
For studying purpose, I am trying to migrate this Java Command Pattern example to PHP:
https://codereview.stackexchange.com/questions/52110/command-pattern-implementation
As @simon commented, u...
Skyline asked 8/3, 2020 at 21:59
6
Solved
Can anyone explain with a simple example the Command Pattern? I tried searching on the internet, but I got confused.
Denticulate asked 6/1, 2010 at 19:23
8
Solved
I don't understand why a Command pattern is convenient in object-oriented design.
Instead of using, e.g. the Command Switch which has a reference to the Lamp class, can't I just create a Switchabl...
Viviennevivify asked 9/6, 2011 at 13:1
15
Solved
Sorry I can't find a question answering this, I'm almost certain someone else has raised it before.
My problem is that I'm writing some system libraries to run embedded devices. I have commands w...
Thaliathalidomide asked 29/7, 2009 at 11:40
4
Solved
I've read up on the Command Pattern, and I think I'm missing something. The Command object exists to abstract away the details of the Receiver object. It seems to me that we could simply stop here,...
Jespersen asked 19/5, 2011 at 19:52
4
Solved
There seems to be endless confusion about whether commands should or should not have return values. I would like to know if the confusion is simply because the participants have not stated th...
Gloaming asked 16/4, 2017 at 3:10
8
I am studying the command design pattern, and I am quite confused with the way of using it. The example that I have is related to a remote control class that is used to turn lights on and ...
Omaromara asked 16/9, 2015 at 0:20
4
Solved
let's assume that we have command pattern implemented in this way
I am a bit confused about the role of Invoker here. From my point of view:
If we do need history (or any kind of action before c...
Effloresce asked 29/5, 2016 at 16:0
3
I've created an XML editor and I'm stuck at the last phase: adding undo/redo functionality.
I've only got to add undo/redo for when users add elements, attributes, or text to the JTree.
I'm still...
Sumptuous asked 17/7, 2012 at 20:20
4
Solved
From Examples of GoF Design Patterns in Java's core libraries question, it was quoted that
All implementations of java.lang.Runnable are examples of Command pattern.
As per my understand...
Cliff asked 24/2, 2016 at 18:32
7
Solved
I've implemented the command pattern (in a multi-support way) in my application.
Structure:
class MultiCommand : BaseCommand
abstract class BaseCommand : ICommand
Process Flow:
var commandsG...
Christean asked 17/6, 2016 at 14:24
3
Solved
There is an extended implementation of command pattern to support multi-commands (groups) in C#:
var ctx= //the context object I am sharing...
var commandGroup1 = new MultiItemCommand(ctx, new L...
Gastrotrich asked 17/6, 2016 at 20:33
2
Solved
I'm fairly new to domain driven design concepts and I've run into a problem with returning proper responses in an API while using a command bus with commands and command handlers for the domain log...
Impoverish asked 10/5, 2016 at 23:35
0
I'm building a web api application. I was wondering what is the best way to call the use case layer.
One option is use uncle bob's interactors as it described here: Interactors
Another option...
Buffet asked 15/4, 2016 at 13:22
1
Solved
I have functionality that I am encapsulate on diff commands using Command pattern.
I am creating the command with the information and logic it need how ever I am getting some params only on runtim...
Caruthers asked 23/3, 2016 at 19:44
3
Solved
What is the Action Design Pattern, I haven't heard of it before? I am suspecting it is the same as the Command Design pattern [wikipedia] but I can't find any resources on it.
Instable asked 19/12, 2008 at 11:28
1
The CRUD-based part of our application needs:
Offline bidirectional "two-way" syncing
Ability to modify data until ready and then "publish".
Audit log
Event Sourcing (or the "command pattern") ...
Foliose asked 11/2, 2016 at 21:52
4
Solved
Is it generally acceptable to allow a Visitor to modify state of the Receiver, or should that be a Command pattern instead?
Advocation asked 18/5, 2010 at 13:54
1 Next >
© 2022 - 2024 — McMap. All rights reserved.