You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as I can see, selma supports setters that starts with 'set' only; unfortunately I have a lots of classes that use setters with "with" prefix.
Is it possible to support builder-style SETTER_FORMAT (MethodWrapper class) in selma?
Something like: SETTER_FORMAT = "(set|with)(.*)"?
Looking forward to your response,
Regards,
Jan Lukasik
The text was updated successfully, but these errors were encountered:
Hi,
with is not a valid Java bean convention. But the with syntax could be easy to support as you explained it.
I am just wondering if that is a good thing to support this because it does not respect the convention and the 'with' syntax can be used by others for something different.
Perhaps it should be accepted based on a specific configuration parameter.
Hi
I agree with you - 'with' it is not a valid Java bean convention but seems to be often used (at least in project I'm working in).
Can it be used for something else? Really don't know - let's assume yes and jump to option you propose:
a specific configuration parameter, as it sounds good to me.
Do you have any example/idea about such implementation/selma configuration for 'with' setters?
That does not seem as simple as just change of SETTER_FORMAT patern in the code. And - frankly speaking - don't know how to do that. Could you please help to sort it out?
Hi
As far as I can see, selma supports setters that starts with 'set' only; unfortunately I have a lots of classes that use setters with "with" prefix.
Is it possible to support builder-style SETTER_FORMAT (MethodWrapper class) in selma?
Something like: SETTER_FORMAT = "(set|with)(.*)"?
Looking forward to your response,
Regards,
Jan Lukasik
The text was updated successfully, but these errors were encountered: