public static interface Feature.DuringSetupAccess extends Feature.FeatureAccess
Feature.duringSetup(org.graalvm.nativeimage.hosted.Feature.DuringSetupAccess).| Modifier and Type | Method and Description |
|---|---|
void |
registerObjectReplacer(Function<Object,Object> replacer)
Registers the provided function to replace objects.
|
findClassByName, getApplicationClassLoader, getApplicationClassPath, getApplicationModulePathvoid registerObjectReplacer(Function<Object,Object> replacer)
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.