Record Class GenerationContext

java.lang.Object
java.lang.Record
eu.cloudnetservice.driver.network.rpc.generation.GenerationContext
Record Components:
component - the network component to use when firing the rpc.
channelSupplier - the supplier for the network component invoked when firing the rpc.
objectMapper - the object mapper mapping the databuf back to an object.
dataBufFactory - the databuf factory to use when creating databufs for the generation factory.
extendingClass - the class the generated class should extend, null for none.
interfaces - the interfaces the generated class should implement.
implementAllMethods - if all methods or only abstract methods should get implemented.

public record GenerationContext(@Nullable NetworkComponent component, @Nullable Supplier<NetworkChannel> channelSupplier, @Nullable ObjectMapper objectMapper, @Nullable DataBufFactory dataBufFactory, @Nullable Class<?> extendingClass, @NonNull Set<Class<?>> interfaces, boolean implementAllMethods) extends Record
A context for the generation of a class which implements some kind of api which only calls methods using rpc.
Since:
4.0