java.lang.Object
com.github.hanyaeger.core.annotations.AnnotationProcessor
The
AnnotationProcessor
is responsible for processing Yaeger specific annotations. Currently,
only the following annotations are supported and will be processed:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configureUpdateDelegators
(Object gameObject) When calling this method, theObject
provided als its parameter will be scanned for the annotationUpdatableProvider
, if theObject
is anUpdateDelegator
.void
invokeActivators
(Object gameObject) Invoke all methods annotated with the annotationOnActivation
on the givenObject
.void
invokePostActivators
(Object gameObject) Invoke all methods annotated with the annotationOnPostActivation
on the givenObject
.
-
Constructor Details
-
AnnotationProcessor
public AnnotationProcessor()
-
-
Method Details
-
invokeActivators
Invoke all methods annotated with the annotationOnActivation
on the givenObject
.- Parameters:
gameObject
- theObject
that should be scanned for theOnActivation
annotation
-
invokePostActivators
Invoke all methods annotated with the annotationOnPostActivation
on the givenObject
.- Parameters:
gameObject
- theObject
that should be scanned for theOnPostActivation
annotation
-
configureUpdateDelegators
When calling this method, theObject
provided als its parameter will be scanned for the annotationUpdatableProvider
, if theObject
is anUpdateDelegator
.- Parameters:
gameObject
- the object that will be scanned for theUpdatableProvider
annotation
-