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

net.mostlyoriginal.api.Singleton Maven / Gradle / Ivy

Go to download

Dependency injection for singleton components. Creates a singleton component upon injection.

The newest version!
package net.mostlyoriginal.api;

import com.artemis.Component;
import com.artemis.annotations.UnstableApi;

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

/**
 * Marks component as a singleton. Annotated classes must extend {@link Component}.
 *
 * SingletonPlugin will inject singleton dependencies into systems, handling singleton lifecycle.
 *
 * @see net.mostlyoriginal.api.SingletonPlugin
 * @author Daan van Yperen
 */
@Retention(RetentionPolicy.RUNTIME)
@UnstableApi
@Target(ElementType.TYPE)
public @interface Singleton {
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy