Class HandlerUtils

java.lang.Object
io.micronaut.function.aws.HandlerUtils

public final class HandlerUtils extends Object
Configures MDC and Bean Context with the current LambdaContext.
Since:
3.2.2
Author:
Sergio del Amo
  • Method Details

    • configureWithContext

      public static void configureWithContext(@NonNull @NonNull io.micronaut.context.ApplicationContextProvider applicationContextProvider, @Nullable @Nullable com.amazonaws.services.lambda.runtime.Context lambdaContext)
      It uses LambdaContextFactory to registers Lambda Context beans as singletons in the bean context. It uses DiagnosticInfoPopulator to populate the MDC context with Lambda Context values.
      Parameters:
      applicationContextProvider - Application Context Provider
      lambdaContext - Lambda Context