Skip to content

[Enhancement] Make setBeanProperties to not depend on it field type. #53

Description

@NemesisMate

The field dependency for the bean property way is great to allow making the bean transient (it isn't currently working, and I wonder if it is intended to) but with this it is impossible to make some tricks as set a String and then, in the getter/setter make wathever magic to de/serialize de field type. ie:

!thing
template: "t1"

and after in code:

TemplateType template;

String getTemplate() {
   return template.getName();
}

void setTemplate(String template) {
  this.template = getTemplateForName(template);
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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