Lombok post @Builder build event

I am using lombok builder. I want to do the following: Once the user creates an object using a function build()

. I want to run the following methods defined in a class.

  • Confirm
  • Initialize some internal object.

What is the way to achieve this?

+3


source to share


1 answer


There is no such function, but there is an associated function request that applies to constructors and setters, not a builder. I think it should work for you, however it hasn't been implemented yet.



+1


source







All Articles