Currently MBeanStatusProvider.compareAttributeValue(String, String, Object) has a dedicated check each different data type. Each supports a different set of comparison types and only some support arrays/lists.
This leads to many lines of duplicated code and isn't very robust.
My suggestion is, we should find a more generic and robust way to check the configured MBean comparison. May be with the help of regex or an additional library.
Currently MBeanStatusProvider.compareAttributeValue(String, String, Object) has a dedicated check each different data type. Each supports a different set of comparison types and only some support arrays/lists. This leads to many lines of duplicated code and isn't very robust.
My suggestion is, we should find a more generic and robust way to check the configured MBean comparison. May be with the help of regex or an additional library.