Module hanyaeger

Class AnnotationProcessor

java.lang.Object
com.github.hanyaeger.core.annotations.AnnotationProcessor

public class AnnotationProcessor extends Object
The AnnotationProcessor is responsible for processing Yaeger specific annotations. Currently, only the following annotations are supported and will be processed:
  • Constructor Details

    • AnnotationProcessor

      public AnnotationProcessor()
  • Method Details

    • invokeActivators

      public void invokeActivators(Object gameObject)
      Invoke all methods annotated with the annotation OnActivation on the given Object.
      Parameters:
      gameObject - the Object that should be scanned for the OnActivation annotation
    • invokePostActivators

      public void invokePostActivators(Object gameObject)
      Invoke all methods annotated with the annotation OnPostActivation on the given Object.
      Parameters:
      gameObject - the Object that should be scanned for the OnPostActivation annotation
    • configureUpdateDelegators

      public void configureUpdateDelegators(Object gameObject)
      When calling this method, the Object provided als its parameter will be scanned for the annotation UpdatableProvider, if the Object is an UpdateDelegator.
      Parameters:
      gameObject - the object that will be scanned for the UpdatableProvider annotation