Skip to content

Package: ApplicationContext

ApplicationContext

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2017, 2022 Red Hat Inc and others
3: *
4: * This program and the accompanying materials are made
5: * available under the terms of the Eclipse Public License 2.0
6: * which is available at https://www.eclipse.org/legal/epl-2.0/
7: *
8: * SPDX-License-Identifier: EPL-2.0
9: *
10: * Contributors:
11: * Red Hat Inc - initial API and implementation
12: *******************************************************************************/
13: package org.eclipse.kapua.kura.simulator.app;
14:
15: import org.eclipse.kapua.kura.simulator.topic.Topic;
16:
17: public interface ApplicationContext {
18:
19: /**
20: * Get a sender for any topic
21: * <p>
22: * The topic may contain the placeholder {@code application-id}, which will be replaced with
23: * the application ID of the application this context belongs to.
24: * </p>
25: *
26: * @param topic
27: * The fully qualified topic, the topic may be un-expanded
28: * @return a new sender, never {@code null}
29: */
30: public Sender sender(Topic topic);
31: }