Package org.axonframework.update
Class UpdateCheckerConfigurationEnhancer
java.lang.Object
org.axonframework.update.UpdateCheckerConfigurationEnhancer
- All Implemented Interfaces:
ConfigurationEnhancer
@Internal
public class UpdateCheckerConfigurationEnhancer
extends Object
implements ConfigurationEnhancer
A
ConfigurationEnhancer that registers the UpdateChecker component. This component is responsible for
reporting anonymous usage data to the AxonIQ servers. It is registered during the external connections phase of the
lifecycle.- Since:
- 5.0.0
- Author:
- Mitchell Herrijgers
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe order ofthisenhancer compared to others, equal toInteger.MAX_VALUE. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidenhance(ComponentRegistry componentRegistry) intorder()Returns the relative order this enhancer should be invoked in, compared to other instances.
-
Field Details
-
ENHANCER_ORDER
public static final int ENHANCER_ORDERThe order ofthisenhancer compared to others, equal toInteger.MAX_VALUE.Setting it to
Integer.MAX_VALUEensures this enhancer runs last, allowing users to override components such as theUpdateCheckerReporter.- See Also:
-
-
Constructor Details
-
UpdateCheckerConfigurationEnhancer
public UpdateCheckerConfigurationEnhancer()
-
-
Method Details
-
enhance
Description copied from interface:ConfigurationEnhancer- Specified by:
enhancein interfaceConfigurationEnhancer- Parameters:
componentRegistry- The registry instance to enhance.
-
order
public int order()Description copied from interface:ConfigurationEnhancerReturns the relative order this enhancer should be invoked in, compared to other instances.Use lower (negative) values for enhancers providing sensible defaults, and higher values for enhancers that should be able to override values potentially previously set. Defaults to
0when not set.- Specified by:
orderin interfaceConfigurationEnhancer- Returns:
- The order in which this enhancer should be invoked.
-