Uploaded image for project: 'HttpComponents HttpClient'
  1. HttpComponents HttpClient
  2. HTTPCLIENT-2044

Add and reuse singleton instances for immutable factory objects.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.0 Beta7
    • None
    • None

    Description

      In a lot of places we create instances of AuthSchemeFactory implementations like BasicSchemeFactory.

      All of these instances are the same and immutable.

      We can simplify the code and put a touch less pressure on the GC by creating singletons for these classes and then reusing them.

      Attachments

        Activity

          People

            ggregory Gary D. Gregory
            ggregory Gary D. Gregory
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: