Skip to content

Adapter and Adaptable support #11

@JaciBrunning

Description

@JaciBrunning

An interface needs to be provided to allow java objects to be adapted into Native objects, for use in Native methods.

Adaptable objects should be able to accept an Adapter, and call Adapter.trigger(int) when a class property is changed. This allows the adapter to listen for changes and apply them to the native mirror of the base class.

To give an example, Profile requires setters and getters for the goal setpoint, timeslice and limits. If no hooks are provided, the native version of this object cannot function properly without making constant, costly callbacks to the JVM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions