1 package org.onap.sdc.dcae.checker.annotations;
3 import java.lang.annotation.Retention;
4 import java.lang.annotation.RetentionPolicy;
5 import java.lang.annotation.ElementType;
6 import java.lang.annotation.Target;
10 @Retention(RetentionPolicy.RUNTIME)
11 @Target({ElementType.TYPE, ElementType.METHOD})
12 /* The iffy part: as a type annotaton we do not need a path or a version specification,
13 as a method annotation it is mandatory (cannot be the default)
14 We could forsee that a version indcation at type level would cover all check handler within the type
16 public @interface Checks {
17 String path() default "/";
18 String[] version() default { "1.0", "1.0.0", "1.1", "1.1.0" };