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
Sometimes we want to bind a class with play Binder, but leave its default constructor private or package-private, so that "normal" application code could not use it.
Like this:
publicclassPerson {
privatePerson() {
// this should be used by Play Binder
}
publicPerson(StringfirstName, StringlastName) {
// this should be used by application code
}
}
The text was updated successfully, but these errors were encountered:
Sometimes we want to bind a class with play
Binder
, but leave its default constructor private or package-private, so that "normal" application code could not use it.Like this:
The text was updated successfully, but these errors were encountered: