com.anaptecs.jeaf.workload.annotations.Resource Maven / Gradle / Ivy
/**
* Copyright 2004 - 2020 anaptecs GmbH, Burgstr. 96, 72764 Reutlingen, Germany
*
* All rights reserved.
*/
package com.anaptecs.jeaf.workload.annotations;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Retention;
/**
* Annotation defines a REST resource as it can be configured to manage its workload.
*/
@Retention(RUNTIME)
public @interface Resource {
/**
* Path of the REST resource.
*/
String path() default "";
/**
* HTTP method type of the REST resource. If no method is defined then the configuration will be used for all types.
*/
HTTPMethod[] httpMethods() default {};
}