Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Writing to Java beans #87

Closed
krzemin opened this issue Sep 12, 2018 · 1 comment
Closed

Writing to Java beans #87

krzemin opened this issue Sep 12, 2018 · 1 comment

Comments

@krzemin
Copy link
Member

krzemin commented Sep 12, 2018

As we now support reading from Java beans, for completeness we could also implement support for writing to them.

Let's assume that Java bean is a class that:

  • have public, no-arg constructor
  • for each target private field foo of type T it has a method of following signature def setFoo(value: T): Unit

IMO it's OK to provide initial support that covers only a case, when we have all the required data in the source object. In the scope of this ticket it's not necessary to make dsl operations like withFieldConst, withFieldComputed, withFieldRenamed working with Java beans targets.

@krzemin
Copy link
Member Author

krzemin commented Nov 22, 2018

Basic support implemented in #93

@krzemin krzemin closed this as completed Nov 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant