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

dev.alangomes.springspigot.security.Audit Maven / Gradle / Ivy

The newest version!
package dev.alangomes.springspigot.security;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Marks a method or all classes in method as auditable.
 *
 * All method calls will be logged with the caller name (if available) and parameter info.
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface Audit {

    /**
     * Declares whether the audit requires a {@link org.bukkit.command.CommandSender CommandSender} as caller.
     * If true, all calls not originated from a {@link org.bukkit.command.CommandSender CommandSender} will be ignored.
     *
     * Defaults to {@code true}
     */
    boolean senderOnly() default true;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy