Interface Feature.DuringSetupAccess

All Superinterfaces:
Feature.FeatureAccess
Enclosing interface:
Feature

public static interface Feature.DuringSetupAccess extends Feature.FeatureAccess
Since:
19.0
  • Method Details

    • registerObjectReplacer

      void registerObjectReplacer(Function<Object,Object> replacer)
      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

      <T> void registerObjectReachabilityHandler(Consumer<T> callback, Class<T> clazz)
      Register a callback that is executed when an object of type clazz, or any of its subtypes, is marked as reachable during heap scanning. The callback may be executed for the same object by multiple worker threads concurrently.
      Since:
      24.2