io.agrest.annotation.AgAttribute Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of agrest-annotations Show documentation
Show all versions of agrest-annotations Show documentation
A dependency-free collection of Agrest annotations that allow to annotate model objects without
introducing a dependency on Agrest runtime.
package io.agrest.annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* Annotates a getter of a property in a Java object to indicate that the property is an attribute exposed via Agrest.
*
* @since 1.15
*/
@Target({METHOD})
@Retention(RUNTIME)
public @interface AgAttribute {
/**
* @since 4.7
*/
boolean readable() default true;
/**
* @since 4.7
*/
boolean writable() default true;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy