Module jakarta.cdi
Class BuildServicesResolver
- java.lang.Object
-
- jakarta.enterprise.inject.build.compatible.spi.BuildServicesResolver
-
public final class BuildServicesResolver extends java.lang.Object
An internal helper to resolveBuildServices
implementations. This class is public only for integrators and should not be used by applications.- Since:
- 4.0
-
-
Constructor Summary
Constructors Constructor Description BuildServicesResolver()
-
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.
-
-
-
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 ofBuildServices
and this class will no longer attempt to look it up using service loader.- Parameters:
instance
- aBuildServices
instance that should be used, must not benull
- Throws:
java.lang.IllegalArgumentException
- if the provided argument is null
-
-