Module jakarta.cdi

Class BuildServicesResolver


  • public final class BuildServicesResolver
    extends java.lang.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
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void setBuildServices​(BuildServices instance)
      This method should not be used by applications.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BuildServicesResolver

        public BuildServicesResolver()
    • Method Detail

      • 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:
        java.lang.IllegalArgumentException - if the provided argument is null