Package io.micronaut.function.aws
Class HandlerUtils
java.lang.Object
io.micronaut.function.aws.HandlerUtils
Configures MDC and Bean Context with the current LambdaContext.
- Since:
- 3.2.2
- Author:
- Sergio del Amo
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
configureWithContext
(@NonNull io.micronaut.context.ApplicationContextProvider applicationContextProvider, @Nullable com.amazonaws.services.lambda.runtime.Context lambdaContext) It usesLambdaContextFactory
to registers Lambda Context beans as singletons in the bean context.
-
Method Details
-
configureWithContext
public static void configureWithContext(@NonNull @NonNull io.micronaut.context.ApplicationContextProvider applicationContextProvider, @Nullable @Nullable com.amazonaws.services.lambda.runtime.Context lambdaContext) It usesLambdaContextFactory
to registers Lambda Context beans as singletons in the bean context. It usesDiagnosticInfoPopulator
to populate the MDC context with Lambda Context values.- Parameters:
applicationContextProvider
- Application Context ProviderlambdaContext
- Lambda Context
-