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

Make the URLStreamHandler as lazy as possible #290

Merged

Commits on Jul 4, 2023

  1. Make the URLStreamHandler as lazy as possible

    URLStreamHandlerFactoryImpl currently opens a service tracker
    unconditionally for URLStreamHandlerService to discover registered
    handlers. This leads to any handler being fetched eagerly instead of
    when it is required.
    
    This changes the handling in a way where it is as lazy as possible by
    
    - not open a tracker until a protocol is requested
    - use a service tracker with a specific protocol filter in proxy
    - only fetch the service when it is first used
    laeubi committed Jul 4, 2023
    Configuration menu
    Copy the full SHA
    786f008 View commit details
    Browse the repository at this point in the history