Class ConfigurerStrategy

java.lang.Object
org.apache.camel.spi.ConfigurerStrategy

public abstract class ConfigurerStrategy extends Object
Utility class for managing the lifecycle of bootstrap-phase PropertyConfigurer instances generated for @Configurer(bootstrap = true) types.

During CamelContext startup, generated configurers for bootstrap-only types (such as main configuration classes that are only configured once) are held in memory. After the context has finished starting, calling clearBootstrapConfigurers() releases those maps to reduce the steady-state memory footprint. Modules register their own cleaner via addBootstrapConfigurerClearer(Runnable) during initialization so that the strategy does not need to know their internal data structures.

Since:
3.7
See Also:
  • Constructor Details

    • ConfigurerStrategy

      public ConfigurerStrategy()
  • Method Details

    • addBootstrapConfigurerClearer

      public static void addBootstrapConfigurerClearer(Runnable strategy)
    • clearBootstrapConfigurers

      public static void clearBootstrapConfigurers()
      Clears the bootstrap configurers map. Clearing this map allows Camel to reduce memory footprint.