Yeah, it is a bit strange . The reason why we can't stop the discovery is that there might be multiple service providers for the same service interface and Weld only registers the one with highest priority. We could filter out services by the class name but in theory each class loader can load a different class for a given name... |