Skip to content

Package: ApplicationContext

ApplicationContext

Coverage

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