com.artemis.annotations.Sticky Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of artemis-odb Show documentation
Show all versions of artemis-odb Show documentation
Fork of Artemis Entity System Framework.
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