Package electrostatic4j.snaploader
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 TypeMethodDescriptionvoidonSystemFound(NativeBinaryLoader nativeBinaryLoader, NativeDynamicLibrary nativeDynamicLibrary) Dispatched when a system predicate is evaluated as true against the system in this runtime.voidonSystemNotFound(NativeBinaryLoader nativeBinaryLoader) 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
Dispatched when all the registered system predicates are evaluated as false against the current system in this runtime. In this case, aUnSupportedSystemErroris also thrown on the user application environment.- Parameters:
nativeBinaryLoader- the dispatching loader
-