Class SourceBuilder<SELF extends SourceBuilder<SELF,​T>,​T extends ConfigSource>

    • Constructor Detail

      • SourceBuilder

        public SourceBuilder()
    • Method Detail

      • getTags

        public Tags getTags()
        Get the tags for the builder.
        Returns:
        the tags for the builder
      • setTags

        public SELF setTags​(Tags tags)
        Set the tags for the builder.
        Parameters:
        tags - the tags for the builder.
        Returns:
        the builder
      • addTag

        public SELF addTag​(Tag tag)
        Add a tag to the builder.
        Parameters:
        tag - tag to add to the builder
        Returns:
        the builder
      • getConfigReloadStrategies

        public java.util.List<ConfigReloadStrategy> getConfigReloadStrategies()
        Get the list of ConfigReloadStrategyBuilder for the builder.
        Returns:
        list of ConfigReloadStrategyBuilder for the builder.
      • addConfigReloadStrategy

        public SELF addConfigReloadStrategy​(ConfigReloadStrategy configReloadStrategy)
        Add a ConfigReloadStrategyBuilder to the builder.
        Parameters:
        configReloadStrategy - ConfigReloadStrategyBuilder to add to the builder
        Returns:
        the builder
      • build

        public abstract ConfigSourcePackage build()
                                           throws GestaltException
        Build the ConfigSourcePackage with the config source, tags and any reload strategies.
        Returns:
        the ConfigSourcePackage with the config source, tags and any reload strategies.
        Throws:
        GestaltException - exceptions if any of the required properties are not set.
      • self

        protected final SELF self()