Package org.graalvm.nativeimage.hosted
Interface Feature.DuringSetupAccess
- All Superinterfaces:
Feature.FeatureAccess
- Enclosing interface:
Feature
Access methods available for
Feature.duringSetup(org.graalvm.nativeimage.hosted.Feature.DuringSetupAccess)
.- Since:
- 19.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
registerObjectReplacer
(Function<Object, Object> replacer) Registers the provided function to replace objects.Methods inherited from interface org.graalvm.nativeimage.hosted.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
-