Skip to content
Advertisement

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 module-info.java I have provider-module which has two implementation for service interface , Provider1.java Provider2.java module-info.java Now , i have consumer-module

Advertisement