* @{inheritDoc}
*/
@Override
public void internalReceiveCommand(String itemName, Command command) {
ExecBindingProvider provider =
findFirstMatchingBindingProvider(itemName, command);
if (provider == null) {
logger.warn("doesn't find matching binding provider [itemName={}, command={}]", itemName, command);
return;
}
String commandLine = provider.getCommandLine(itemName, command);
// fallback
if (commandLine == null) {
commandLine = provider.getCommandLine(itemName, WILDCARD_COMMAND_KEY);
}
if (commandLine != null && !commandLine.isEmpty()) {
commandLine = String.format(commandLine, Calendar.getInstance().getTime(), command, itemName);