@Retention(value=RUNTIME) @Target(value={FIELD,TYPE}) public @interface Wire
ComponentMapper, EntitySystem and Manager fields upon
calling World.setSystem(com.artemis.EntitySystem) or
World.setManager(com.artemis.Manager).
Inject into any object using @Wire and World.inject(Object)
Nonstandard dependency fields must be explicitly annotated with
@Wire(name="myName") to inject by name, or @Wire
to inject by type. Class level @Wire annotation is not enough.
To specify which nonstandard dependencies to inject, use
WorldConfiguration.register(String, Object) and
WorldConfiguration.register(Object).
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
failOnNull
Throws a
NullPointerException if field can't be injected. |
boolean |
injectInherited
If true, also inject inherited fields.
|
String |
name |
public abstract boolean injectInherited
public abstract boolean failOnNull
NullPointerException if field can't be injected.public abstract String name
Copyright © 2014. All Rights Reserved.