NativeRuntime¶
-
public abstract class
NativeRuntime¶ The parent of every NativeRuntime.
The runtimes are responsible for handling language environments like C, Objective-C and others. The runtimes have three kinds of default
Mapperimplementations: object, string and callback mappers. Whenever a native method or one of its arguments has no explicitly given mapper specified with theorg.moe.natj.general.ann.MappedReturnororg.moe.natj.general.ann.Mappedannotations, then NatJ will use one of these default mappers of the determined responsible runtime instance.
Fields¶
Constructors¶
NativeRuntime¶
-
protected
NativeRuntime(Class<?> objectMapperClass, Class<?> stringMapperClass, Class<?> callbackMapperClass)¶ Constructs the runtime and registers the default mappers.
Parameters: - objectMapperClass – The default mapper for objects
- stringMapperClass – The default mapper for strings
- callbackMapperClass – The default mapper for callbacks