Interface PropertiesReload
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Listener notified when a
Properties source is re-loaded at runtime, for example after a properties
file changes.
When live reloading is enabled, the PropertiesComponent invokes onReload(String, Properties) with
the resource name and the freshly loaded properties, allowing Camel to react to configuration changes without a
restart.
See Using PropertyPlaceholder in the
Camel user manual.- Since:
- 4.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidonReload(String name, Properties properties) Callback when the properties is re-loaded.
-
Method Details
-
onReload
Callback when the properties is re-loaded.- Parameters:
name- name of the resource such as the file name (absolute)properties- the properties that was re-loaded- Throws:
Exception- error reloading properties
-