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

com.artemis.annotations.Sticky Maven / Gradle / Ivy

There is a newer version: 2.3.0
Show newest version
package com.artemis.annotations;

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

import com.artemis.EntityFactory;

/**
 * Stickied methods have their parameter values persisted
 * for the duration of the {@link EntityFactory} instance.
 * 

* After a factory has created the first entity, stickied methods * throw an {@link IllegalArgumentException}. Calling {@link EntityFactory#copy()} * allows updating stickied values again - until the new factory * creates an entity. *

* * @see EntityFactory * @see Bind * @see UseSetter */ @Retention(RetentionPolicy.SOURCE) @Target(ElementType.METHOD) @Documented public @interface Sticky {}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy