Class ConfigurerStrategy
java.lang.Object
org.apache.camel.spi.ConfigurerStrategy
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddBootstrapConfigurerClearer(Runnable strategy) static voidClears the bootstrap configurers map.
-
Constructor Details
-
ConfigurerStrategy
public ConfigurerStrategy()
-
-
Method Details
-
addBootstrapConfigurerClearer
-
clearBootstrapConfigurers
public static void clearBootstrapConfigurers()Clears the bootstrap configurers map. Clearing this map allows Camel to reduce memory footprint.
-