Annotation Interface PermissionHolder


@Target(TYPE) @Retention(RUNTIME) public @interface PermissionHolder
Marks a class whose static PermissionNode fields should be registered automatically.

Enums and classes implementing PermissionNode in the plugin's package are discovered without this annotation.

 @PermissionHolder
 public final class Permissions {
     public static final Permission ADMIN = Permission.of("myplugin.admin");
 }