Skip to content

Tag: serviceloader

Java9 modules : How to execute Provider based on some priority of execution?

I am using java 9 modules to implement provider , i have multiple providers for service interface. I want to provide some priority for providers for their execution insted of using findFirst(); I have service-interface modules as below , ServiceInterface.Java I have provider-module which has two implementation for service interface , Now , i have consumer-module