2 * Copyright (c) 2010-2020 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.xmppclient.action;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
19 * This is the automation engine action handler service for the publishXMPP action.
21 * <b>Note:</b>The static method <b>invokeMethodOf</b> handles the case where
22 * the test <i>actions instanceof XMPPActions</i> fails. This test can fail
23 * due to an issue in openHAB core v2.5.0 where the {@link IXMPPActions} class
24 * can be loaded by a different classloader than the <i>actions</i> instance.
26 * @author Laurent Garnier - Initial contribution
29 public interface IXMPPActions {
31 public void publishXMPP(@Nullable String to, @Nullable String text);