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

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

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

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

import com.artemis.Component;
import com.artemis.EntityFactory;

/**
 * Associates components to {@link EntityFactory EntityFactories}, either by
 * annotating at the class or method level. For all methods declared by an
 * {@link EntityFactory}, the parameters must match fields declared by the component.
 * Only primitive, enum and string types are currently supported. The {@link UseSetter} annotation
 * can be employed when setter invocation is desirable. 
 * 
 * 

Annotated methods always work with a single component type, while multiple component * types can be given when annotation an {@link EntityFactory} interface.

* * @see EntityFactory * @see Sticky * @see UseSetter */ @Retention(RetentionPolicy.CLASS) @Target({ElementType.TYPE, ElementType.METHOD}) public @interface Bind { Class[] value(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy