Class DurationConfigurationLookupStrategy

    • Field Detail

      • log

        @Nonnull
        private final org.slf4j.Logger log
        Class logger.
      • durationConverter

        @Nonnull
        private final Converter<String,​Duration> durationConverter
        Converter to handle duration strings.
    • Constructor Detail

      • DurationConfigurationLookupStrategy

        public DurationConfigurationLookupStrategy()
        Constructor.
    • Method Detail

      • xmlObjectToDuration

        @Nullable
        private Duration xmlObjectToDuration​(@Nonnull
                                             XMLObject object)
        Convert an XMLObject to a Long based on a duration if the type is supported.
        Parameters:
        object - object to convert
        Returns:
        the converted value, or null