Class CompositeKryoRegistrar

java.lang.Object
org.springframework.integration.codec.kryo.AbstractKryoRegistrar
org.springframework.integration.codec.kryo.CompositeKryoRegistrar
All Implemented Interfaces:
KryoRegistrar

public class CompositeKryoRegistrar extends AbstractKryoRegistrar
A KryoRegistrar that delegates and validates registrations across all components.
Since:
4.2
Author:
David Turanski
  • Constructor Details

    • CompositeKryoRegistrar

      public CompositeKryoRegistrar(List<KryoRegistrar> delegates)
  • Method Details

    • registerTypes

      public void registerTypes(com.esotericsoftware.kryo.Kryo kryo)
      Description copied from interface: KryoRegistrar
      This method is invoked by the PojoCodec and applied to the Kryo instance whenever a new instance is created.
      Specified by:
      registerTypes in interface KryoRegistrar
      Overrides:
      registerTypes in class AbstractKryoRegistrar
      Parameters:
      kryo - the Kryo instance
    • getRegistrations

      public final List<com.esotericsoftware.kryo.Registration> getRegistrations()
      Returns:
      the list of Registration provided