Interface Feature.DuringSetupAccess
- All Superinterfaces:
Feature.FeatureAccess
- Enclosing interface:
Feature
Access methods available for
Feature.duringSetup(Feature.DuringSetupAccess).- Since:
- 19.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidRegisters a method that is allowed to be executed at build time if called as the bootstrap method for a constantdynamic, in which case each call site outputted will be constant-folded.voidRegisters a method that is allowed to be executed at build time if called as the bootstrap method for an invokedynamic, in which case each call site outputted will be constant-folded.<T> voidregisterObjectReachabilityHandler(Consumer<T> callback, Class<T> clazz) Register a callback that is executed when an object of typeclazz, or any of its subtypes, is marked as reachable during heap scanning.voidregisterObjectReplacer(Function<Object, Object> replacer) Registers the provided function to replace objects.Methods inherited from interface Feature.FeatureAccess
findClassByName, getApplicationClassLoader, getApplicationClassPath, getApplicationModulePath
-
Method Details
-
registerObjectReplacer
Registers the provided function to replace objects.The function checks if an object should be replaced. In such a case, the function creates the new object and returns it. The function must return the original object if the object should not be replaced.
- Since:
- 19.0
-
registerObjectReachabilityHandler
Register a callback that is executed when an object of typeclazz, or any of its subtypes, is marked as reachable during heap scanning. The callback is executed before the object is added to the shadow heap. The callback may be executed for the same object by multiple worker threads concurrently.- Since:
- 24.2
-
registerBuildTimeBootstrapIndy
Registers a method that is allowed to be executed at build time if called as the bootstrap method for an invokedynamic, in which case each call site outputted will be constant-folded. Other bootstrap methods will be executed at run time by default, creating the call site at run time.- Since:
- 25.4
-
registerBuildTimeBootstrapCondy
Registers a method that is allowed to be executed at build time if called as the bootstrap method for a constantdynamic, in which case each call site outputted will be constant-folded. Other bootstrap methods will be executed at run time by default, creating the call site at run time.- Since:
- 25.4
-