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

Builder pattern for DefaultModule #482

Merged
merged 3 commits into from May 1, 2014
Merged

Conversation

olafleur
Copy link
Member

This is to fix #184 .

@olafleur
Copy link
Member Author

@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,
Copy link
Member

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, will do.

@christiangoudreau
Copy link
Member

one small nit

@olafleur
Copy link
Member Author

Nit fixed.

@christiangoudreau
Copy link
Member

LGTM

olafleur added a commit that referenced this pull request May 1, 2014
@olafleur olafleur merged commit edc7b47 into master May 1, 2014
@olafleur olafleur deleted the ol_defaultmodule_builder branch May 1, 2014 14:57
@Chris-V
Copy link
Member

Chris-V commented May 2, 2014

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());

@olafleur
Copy link
Member Author

olafleur commented May 2, 2014

@Chris-V should we create an issue with a clear description of that feature?

@Chris-V
Copy link
Member

Chris-V commented May 2, 2014

Yes

@olafleur
Copy link
Member Author

olafleur commented May 2, 2014

Created #483

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

Successfully merging this pull request may close these issues.

Builder pattern for DefaultModule
3 participants