com.google.sitebricks.stat.Stat Maven / Gradle / Ivy
package com.google.sitebricks.stat;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Annotate a variable to mark it as a statistic to be tracked.
*
* @author [email protected] (Dhanji R. Prasanna)
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.METHOD})
public @interface Stat {
/** The name of the stat to track. */
String value();
/** An optional human-readable description of this stat. */
String description() default "";
/**
* Class of the exposer to apply before exposing a reference to the stat
* value.
*/
Class extends StatExposer> exposer() default StatExposers.InferenceExposer.class;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy