
net.sf.esfinge.gamification.annotation.PointsToUser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gamification Show documentation
Show all versions of gamification Show documentation
The Esfinge Gamification is a matadata based framework applicable to systems requiring an gamification logic, regardless of the domain.
The newest version!
package net.sf.esfinge.gamification.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import net.sf.esfinge.gamification.annotation.*;
import net.sf.esfinge.gamification.processors.PointsToUserProcessor;
import net.sf.esfinge.gamification.validate.annotation.ProhibitsGamification;
import net.sf.esfinge.metadata.annotation.validator.MinValue;
import net.sf.esfinge.metadata.annotation.validator.NotNull;
import net.sf.esfinge.metadata.annotation.validator.SearchInsideAnnotations;
import net.sf.esfinge.metadata.annotation.validator.SearchOnEnclosingElements;
@SearchOnEnclosingElements
@SearchInsideAnnotations
@ProhibitsGamification(RemovePoints.class)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD,ElementType.TYPE, ElementType.ANNOTATION_TYPE})
@GamificationProcessor(PointsToUserProcessor.class)
public @interface PointsToUser {
@MinValue(value=0)
int quantity();
@NotNull
String name();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy