Skip to content

Option to check if the field in the attached object changes #25

@Thecarisma

Description

@Thecarisma

Since the attached class/object fields are updated on putting, it a flaw that if the object field is set directly konfiger is not aware of the field update and no language that I know has a way of notifying that a class field value has changed.

A solution to this is to check that specific field when get* is called in konfiger, this for sure will be slow as class reflection occurs for each gets method so this should be optional and can be toggled with the builder. Another solution is to recheck the field for changed value when save is called this is also toggled able but this solution is more efficient since an object is attached, the object field will be used to konfiger directly konfiger will only come in on resolve/dissolve and save when the object is to be written back to file or printed in terminal (the check happens in the toString is on).

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