Class ProvidenceConfigSupplier<Message extends net.morimekta.providence.PMessage<Message>>

  • All Implemented Interfaces:
    java.util.function.Supplier<Message>, ConfigSupplier<Message>

    public class ProvidenceConfigSupplier<Message extends net.morimekta.providence.PMessage<Message>>
    extends UpdatingConfigSupplier<Message>
    A supplier to get a config (aka message) from a providence config. This is essentially the initiator for the config. It will always have a config message instance, and will log (error) if it later fails to load an updated config.
    • Constructor Detail

      • ProvidenceConfigSupplier

        public ProvidenceConfigSupplier​(@Nonnull
                                        java.nio.file.Path configFile,
                                        @Nullable
                                        ConfigSupplier<Message> parentSupplier,
                                        @Nullable
                                        net.morimekta.util.FileWatcher fileWatcher,
                                        @Nonnull
                                        ConfigParser configParser,
                                        @Nonnull
                                        java.time.Clock clock)
                                 throws ConfigException
        Throws:
        ConfigException
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getName

        public java.lang.String getName()
        Description copied from interface: ConfigSupplier
        Get a simple descriptive name for this config supplier.
        Returns:
        The supplier name.