@Retention(value=RUNTIME) @Target(value={FIELD,METHOD,TYPE}) @Documented @UnstableApi public @interface One
Auto-configures fields or systems pertaining to aspects. The annotated field
must be one the following types: Aspect
, Aspect.Builder
,
EntitySubscription
.
On BaseEntitySystem subclasses, this annotation configures the aspects for the system, replacing the need to use constructor parameters.>/p>
This annotation can be combined with All
and Exclude
,
but will be ignored if AspectDescriptor
is present.
This annotation works similar to Wire
; fields are configured
during BaseSystem.initialize()
, or explicitly via World.inject(Object)
.
All
,
Exclude
,
AspectDescriptor
,
Wire
Copyright © 2019. All rights reserved.