Class ParseNodeProxyFactory

java.lang.Object
com.microsoft.kiota.serialization.ParseNodeProxyFactory
All Implemented Interfaces:
ParseNodeFactory
Direct Known Subclasses:
BackingStoreParseNodeFactory

public abstract class ParseNodeProxyFactory extends Object implements ParseNodeFactory
Proxy factory that allows the composition of before and after callbacks on existing factories.
  • Constructor Details

    • ParseNodeProxyFactory

      public ParseNodeProxyFactory(@Nonnull ParseNodeFactory concrete, @Nullable Consumer<Parsable> onBefore, @Nullable Consumer<Parsable> onAfter)
      Creates a new proxy factory that wraps the specified concrete factory while composing the before and after callbacks.
      Parameters:
      concrete - the concrete factory to wrap
      onBefore - the callback to invoke before the deserialization of any model object.
      onAfter - the callback to invoke after the deserialization of any model object.
  • Method Details