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

Cloneable CrawlConfig #431

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

dgoiko
Copy link

@dgoiko dgoiko commented Jan 25, 2020

Now CrawlConfig is cloneable. It does a deep copy of everything except of DNSResolver and CookieStore, which are shallow copied.

I've used this to let the user provide a CrawlConfig base config that a crawl controller launcher modifies based on system vars in order to create controllers with different confgurations

Now CrawlConfig is cloneable. It does a deep copy of everything except of DNSResolver and CookieStore, which are shallow copied.
now clone() calls createInstance, so child can overwrite it and call super.clone on their clone methods
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