Skip to content

Package: GET

GET

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.annotated;
14:
15: import java.lang.annotation.ElementType;
16: import java.lang.annotation.Inherited;
17: import java.lang.annotation.Retention;
18: import java.lang.annotation.RetentionPolicy;
19: import java.lang.annotation.Target;
20:
21: /**
22: * Map a method for command access using GET
23: * <p>
24: * This annotation marks the methods as an external command resource using the
25: * GET method. The resource name is the name of the method.
26: * </p>
27: * <p>
28: * <strong>Note: </strong>Marking methods with multiple, conflicting annotations
29: * may result in an undefined behavior.
30: * </p>
31: */
32: @Retention(RetentionPolicy.RUNTIME)
33: @Target(ElementType.METHOD)
34: @Inherited
35: public @interface GET {
36:
37: }