Skip to content

Package: Application

Application

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: public interface Application {
16:
17: /**
18: * Get the application descriptor
19: *
20: * @return the application descriptor, must never return {@code null}
21: */
22: public Descriptor getDescriptor();
23:
24: /**
25: * Create a new application handler
26: *
27: * @param context
28: * the application context, which can be used to send messages
29: *
30: * @return a new application handler, must never return {@code null}
31: */
32: public Handler createHandler(ApplicationContext context);
33: }