Class HooksConfigurationBuilder

  • public abstract class HooksConfigurationBuilder
    extends java.lang.Object
    Contains methods for configuring the SDK's 'hooks'.

    If you want to add hooks, use Components.hooks(), configure accordingly, and pass it to LDConfig.Builder.hooks(HooksConfigurationBuilder).

         List hooks = createSomeHooks();
         LDConfig config = new LDConfig.Builder()

    Note that this class is abstract; the actual implementation is created by calling Components.hooks().

    • Field Detail

      • hooks

        protected java.util.List<Hook> hooks
        The current set of hooks the builder has.
    • Constructor Detail

      • HooksConfigurationBuilder

        public HooksConfigurationBuilder()
    • Method Detail

      • setHooks

        public HooksConfigurationBuilder setHooks​(java.util.List<Hook> hooks)
        Adds the provided list of hooks to the configuration. Note that the order of hooks is important and controls the order in which they will be executed. See Hook for more details.
        hooks - to be added to the configuration
        the builder