Protected
configProvides a function to determine if the validatorSrc is in conflict with one in the destination. It must always be set, and defaults to identifyValidatorConflict().
Provides a function to determine if the validatorSrc is in conflict with one in the destination. It must always be set, and defaults to identifyValidatorConflict().
Services accessor. Note: Not passed into the constructor because this object should be created before ValidationServices itself. So it gets assigned when the associated service property on ValidationService is assigned the service instance.
Provides access to services.
Protected
loggerProvides an API for logging, sending entries to the loggerService.
Assigns the rule for a property on any Config and subclass. Once assigned, some rules allow change and others, like 'locked' cannot be changed and throw an error. If no rule has been assigned, merge() assumes "replace".
The rule assigned to the property or undefined if not assigned.
Protected
mergeApplies the ConfigMergeService rules to all properties found in the source config. If the destination does not have the same property, it is copied. Otherwise, we use the ConfigMergeService rule. If there is no ConfigMergeService rule for a property found on source, it is always copied. The result is changes made to destination. If the rule is 'delete', then it checks for the property in the destination config and deletes that, without regard to the property being present in the source.
Used by your PropertyConfigMergeServiceHandler function to know what specifically is being resolved.
Protected
mergeHandle one property based on the rule. Expects both source and destination to have the same property.
Exposes property names that are not expected to be changed by the rules. Ignores rules with functions. Intent is to allow ValueHostsManagerConfigModifier to know of properties to strip out instead of allowing them to make it into the merge code. Value is cached upon first request. Cache is cleared if rules are changed.
Protected
protectIf the user needs to abandon this instance, they should use this to clean up active resources (like timers) and to release memory that would stall the garbage collector from disposing this object. It should assign any object reference to undefined as a strong indicator that the object has been disposed.
Determines if source is in conflict with an existing ValidatorConfig in destinations. Returns the destination in conflict, ready to be passed to validatorConfigMergeService.resolve.
Handles merging and conflict resolution for the validatorConfigs in both source and destination. Depends on user customizable
Protected
hasProtected
updateChanges the services on all implementations of IServicesAccessor
Generated using TypeDoc v0.25.12
Default ConfigMergeService for Validators. Automatically used if none is supplied to the default ValueHostConfigMergeService. It copies all properties except: errorCode, conditionConfig, conditionCreator. It uses the conditionConfigResolver rules to handle any conditionConfig. It defaults the Creators to 'nochange', meaning you could attach a function to it to handle it yourself.