All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.anaptecs.jeaf.workload.annotations.Resource Maven / Gradle / Ivy

There is a newer version: 1.8.0
Show newest version
/**
 * 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 {};
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy