]> git.basschouten.com Git - openhab-addons.git/blob
05e684d9a8a9641b52248c706973d3b0a3158ff4
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2020 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
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
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.xmppclient.action;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17
18 /**
19  * This is the automation engine action handler service for the publishXMPP action.
20  * <p>
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.
25  *
26  * @author Laurent Garnier - Initial contribution
27  */
28 @NonNullByDefault
29 public interface IXMPPActions {
30
31     public void publishXMPP(@Nullable String to, @Nullable String text);
32 }