Interface NativeBinaryLoadingListener


public interface NativeBinaryLoadingListener
Provides executable functions binding the user applications to the loading lifecycle.

Note: All the functions on this interface are dispatched by the NativeBinaryLoader.loadBinary(NativeDynamicLibrary, LoadingCriterion)

  • Method Details

    • onLoadingSuccess

      void onLoadingSuccess(NativeBinaryLoader nativeBinaryLoader, CallingStackMetaData callingStackMetaData)
      Dispatched when loading the system-specific binary has succeeded.
      Parameters:
      nativeBinaryLoader - the dispatching loader.
      callingStackMetaData - a data structure representing the meta data of the calling stack.
    • onLoadingFailure

      void onLoadingFailure(NativeBinaryLoader nativeBinaryLoader, CallingStackMetaData callingStackMetaData)
      Dispatched when loading the system-specific binary has failed.
      Parameters:
      nativeBinaryLoader - the dispatching loader.
      callingStackMetaData - a data structure representing the meta data of the calling stack.
    • onRetryCriterionExecution

      void onRetryCriterionExecution(NativeBinaryLoader nativeBinaryLoader, CallingStackMetaData callingStackMetaData)
      Dispatched when loading the system-specific binary has failed, and the retry criterion has been executed.

      Note: this dispatching function could be overridden to add your own anti-failure mechanisms (i.e., Retry Criterion).

      Parameters:
      nativeBinaryLoader - the dispatching loader.
      callingStackMetaData - a data structure representing the meta data of the calling stack.