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

org.tkit.quarkus.log.rs.LogRestService Maven / Gradle / Ivy

There is a newer version: 2.36.0
Show newest version
package org.tkit.quarkus.log.rs;

import java.lang.annotation.*;

import jakarta.enterprise.util.Nonbinding;

/**
 * The rest service annotation.
 */
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.METHOD, ElementType.TYPE })
public @interface LogRestService {

    /**
     * Configuration key.
     *
     * @return rest controller configuration key.
     */
    String configKey() default "";

    /**
     * Log the method or class if the flag is {@code true}.
     *
     * @return the log flag.
     */
    @Nonbinding
    boolean log() default true;

    /**
     * Log the method payload or class if the flag is {@code true}.
     *
     * @return the payload flag.
     */
    @Nonbinding
    boolean payload() default false;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy