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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureUpdateDelegators(Object gameObject) When calling this method, theObjectprovided als its parameter will be scanned for the annotationUpdatableProvider, if theObjectis anUpdateDelegator.voidinvokeActivators(Object gameObject) Invoke all methods annotated with the annotationOnActivationon the givenObject.voidinvokePostActivators(Object gameObject) Invoke all methods annotated with the annotationOnPostActivationon the givenObject.
-
Constructor Details
-
AnnotationProcessor
public AnnotationProcessor()
-
-
Method Details
-
invokeActivators
Invoke all methods annotated with the annotationOnActivationon the givenObject.- Parameters:
gameObject- theObjectthat should be scanned for theOnActivationannotation
-
invokePostActivators
Invoke all methods annotated with the annotationOnPostActivationon the givenObject.- Parameters:
gameObject- theObjectthat should be scanned for theOnPostActivationannotation
-
configureUpdateDelegators
When calling this method, theObjectprovided als its parameter will be scanned for the annotationUpdatableProvider, if theObjectis anUpdateDelegator.- Parameters:
gameObject- the object that will be scanned for theUpdatableProviderannotation
-