OSGI Activate Annotation: initializing an Apache HTTPClient during @activate

Home » Forums » Playstation » OSGI Activate Annotation: initializing an Apache HTTPClient during @activate

Author
Topic
#1425

Is there any pros/cons of initializing an Apache HTTPClient variable during @activate vs initializing the same variable when I'm about to use it?

 

private CloseableHttpClient httpClient;

@Activate
protected void activate() {
httpClient = HttpClientBuilder.create()
.setDefaultRequestConfig(requestConfig)
.build();
}

Viewing 0 reply threads
Author
Replies
  • #1435

    When will tutorials be available for Adobe Advertising Cloud

    I checked with the Experience League team and they don't have a date for when Ad Cloud content will be present on Experience League.


Viewing 0 reply threads
  • You must be logged in to reply to this topic.