Class EventParser<I>

java.lang.Object
no.unit.nva.events.handlers.EventParser<I>

public class EventParser<I> extends Object
  • Field Details

  • Constructor Details

    • EventParser

      public EventParser(String input, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
  • Method Details

    • parse

      public AwsEventBridgeEvent<I> parse(Class<I> iclass)
    • parse

      public AwsEventBridgeEvent parse(Class... nestedParameterClasses)
      Given the nested parameter classes ClassA,ClassB,ClassC,...,ClassZ, this method returns the an AwsEventBridgeEvent where the detail object in of type ClassA<ClassB<ClassC<...ClassZ>>..>.
      Parameters:
      nestedParameterClasses - the classes of the nested generic type of the detail object.
      Returns:
      an AwsEventBridgeEvent with a nested generic type as detail object.