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

Url Management Refactor #70

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bmzhao
Copy link

@bmzhao bmzhao commented Dec 23, 2016

URL Manager is now a singleton object rather than a class with static members
All URL related classes have been refactored into package cz.brmlab.yodaqa.provider.url

URL sets are now stored in dict map json object instead of a 2D array.

All URLs have a key associated with them located in cz.brmlab.yodaqa.provider.url.UrlConstants, where the constant acts as both the System.property override (the CLI -D flag) and the key in the json dict map. This also keeps the set of urls easy to extend w/o breaking existing functionality, as you can add new urls into the json dict map, and just add a new constant in the UrlConstants class that any new classes can depend on.

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.

1 participant