Interface SystemDetectionListener


public interface SystemDetectionListener
Provides executable functions binding the user applications to the system detection lifecycle.

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

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onSystemFound(NativeBinaryLoader nativeBinaryLoader, NativeDynamicLibrary nativeDynamicLibrary)
    Dispatched when a system predicate is evaluated as true against the system in this runtime.
    void
    Dispatched when all the registered system predicates are evaluated as false against the current system in this runtime.
  • Method Details

    • onSystemFound

      void onSystemFound(NativeBinaryLoader nativeBinaryLoader, NativeDynamicLibrary nativeDynamicLibrary)
      Dispatched when a system predicate is evaluated as true against the system in this runtime.
      Parameters:
      nativeBinaryLoader - the dispatching loader.
      nativeDynamicLibrary - the native library object with an evaluated predicate.
    • onSystemNotFound

      void onSystemNotFound(NativeBinaryLoader nativeBinaryLoader)
      Dispatched when all the registered system predicates are evaluated as false against the current system in this runtime. In this case, a UnSupportedSystemError is also thrown on the user application environment.
      Parameters:
      nativeBinaryLoader - the dispatching loader