net.mostlyoriginal.api.SingletonException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of contrib-plugin-singleton Show documentation
Show all versions of contrib-plugin-singleton Show documentation
Dependency injection for singleton components. Creates a singleton component upon injection.
The newest version!
package net.mostlyoriginal.api;
import java.util.Set;
import com.artemis.Component;
public class SingletonException extends RuntimeException {
private static final long serialVersionUID = 1L;
public SingletonException(Set> singletonComponents) {
super("Components annotated with @Singleton cannot be added to entities. Singleton components: " + singletonComponents);
}
}