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. Adding a provider to the classpath at runtime can be done in several ways:
|
Search This Blog
Java: Add Service Provider at runtime
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment