Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is it possible to add service providers at runtime?

possible runtime service
0
Posted

Is it possible to add service providers at runtime?

0

Yes. In JDK versions up to 1.4.2, the classpath is scanned for providers each time they need to be queried. In 1.5.0, providers are cached with a timeout of 60 seconds. So adding a service provider to the classpath will have an immediate effect or after 1 minute, respectively.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123