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
Builder pattern for DefaultModule #482
Conversation
@Chris-V @christiangoudreau @jbarop Is that what you had in mind? |
* @param placeManagerClass The {@link PlaceManager} implementation. | ||
* @param tokenFormatterClass The {@link TokenFormatter} implementation. | ||
*/ | ||
public DefaultModule(Class<? extends PlaceManager> placeManagerClass, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should still be available but market as deprecated for backward compatibility
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, will do.
one small nit |
Nit fixed. |
LGTM |
Builder pattern for DefaultModule
Now that we have a builder pattern, having some sugar to configure the default places would be nice ;) ie: install(new DefaultModule.Builder()
.defaultPlace(NameTokens.HOME)
.errorPlace(NameTokens.HALP_ME)
.build()); |
@Chris-V should we create an issue with a clear description of that feature? |
Yes |
Created #483 |
This is to fix #184 .