Class BuildServicesResolver

java.lang.Object
jakarta.enterprise.inject.build.compatible.spi.BuildServicesResolver

public final class BuildServicesResolver extends Object
An internal helper to resolve BuildServices implementations. This class is public only for integrators and should not be used by applications.
Since:
4.0
  • Constructor Details

    • BuildServicesResolver

      public BuildServicesResolver()
  • Method Details

    • setBuildServices

      public static void setBuildServices(BuildServices instance)
      This method should not be used by applications. It is only exposed for integrators with complex classloading architectures, where service loader lookup doesn't work out of the box. With this method, an integrator may manually provide an instance of BuildServices and this class will no longer attempt to look it up using service loader.
      Parameters:
      instance - a BuildServices instance that should be used, must not be null
      Throws:
      IllegalArgumentException - if the provided argument is null