You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jmeter.apache.org by "vlsi (via GitHub)" <gi...@apache.org> on 2023/05/06 06:33:01 UTC
[GitHub] [jmeter] vlsi opened a new issue, #5883: Use ServiceLoader to find implementations instead of ClassFinder
vlsi opened a new issue, #5883:
URL: https://github.com/apache/jmeter/issues/5883
### Use case
There should be a possibility to launch JMeter without hand-crafting a special file layout.
For instance, when running unit tests, it is hard to prepare all the jars in the appropriate folders.
### Possible solution
Use `java.util.ServiceLoader` to lookup implementations so the users could provide implementations via Java classpath.
### Possible workarounds
_No response_
### JMeter Version
5.5
### Java Version
_No response_
### OS Version
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@jmeter.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [jmeter] vlsi closed issue #5883: Use ServiceLoader to find implementations instead of ClassFinder
Posted by "vlsi (via GitHub)" <gi...@apache.org>.
vlsi closed issue #5883: Use ServiceLoader to find implementations instead of ClassFinder
URL: https://github.com/apache/jmeter/issues/5883
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@jmeter.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [jmeter] vlsi commented on issue #5883: Use ServiceLoader to find implementations instead of ClassFinder
Posted by "vlsi (via GitHub)" <gi...@apache.org>.
vlsi commented on issue #5883:
URL: https://github.com/apache/jmeter/issues/5883#issuecomment-1537084167
Java 9+ has a convenient method `ServiceLoader#stream()` that returns services without instantiating them first: https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/ServiceLoader.html#stream()
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@jmeter.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org