title: Custom ClassLoader, how to use?
body: <p>I am trying to use a custom class loader to load all the dependencies needed for the application. I've implemented the customerClassLoader following the site: <a href="https://www.javacodegeeks.com/2013/03/java-handmade-classloader-isolation.html" rel="noreferrer">https://www.javacodegeeks.com/2013/03/java-handmade-classloader-isolation.html</a></p>
  
  <p>However, I dont understand how to tell my application to use the custom classLoader whenever needed.</p>
  
  <p>For instance: Lets say, I have a method to make http request like below. How can I tell the application to use the custom classLoader to load the required jars?</p>
  
  <pre><code>private HttpResponse get() {
      HttpClient client = HttpClientBuilder.create().build();
      HttpGet request = new HttpGet(url);
      HttpResponse response = client.execute(request);
      return response;
  }
  </code></pre>