1 package org
.asamk
.signal
.commands
;
3 import net
.sourceforge
.argparse4j
.inf
.Namespace
;
5 import org
.asamk
.Signal
;
6 import org
.asamk
.signal
.OutputWriter
;
7 import org
.asamk
.signal
.commands
.exceptions
.CommandException
;
8 import org
.asamk
.signal
.dbus
.DbusSignalImpl
;
9 import org
.asamk
.signal
.manager
.Manager
;
11 public interface DbusCommand
extends LocalCommand
{
13 void handleCommand(Namespace ns
, Signal signal
, OutputWriter outputWriter
) throws CommandException
;
15 default void handleCommand(
16 final Namespace ns
, final Manager m
, final OutputWriter outputWriter
17 ) throws CommandException
{
18 handleCommand(ns
, new DbusSignalImpl(m
, null), outputWriter
);