@Singleton public class DefaultLambdaContextFactory extends java.lang.Object implements LambdaContextFactory
Context
.
If the Lambda Context contains non-null LambdaLogger
, ClientContext
and CognitoIdentity
they are registered as Singleton as well.Constructor and Description |
---|
DefaultLambdaContextFactory(io.micronaut.context.BeanContext beanContext) |
Modifier and Type | Method and Description |
---|---|
void |
registerSingletons(com.amazonaws.services.lambda.runtime.Context context)
Registers Lambda Context as a singleton.
|
public DefaultLambdaContextFactory(io.micronaut.context.BeanContext beanContext)
beanContext
- Bean Context.public void registerSingletons(@NonNull com.amazonaws.services.lambda.runtime.Context context)
LambdaContextFactory
registerSingletons
in interface LambdaContextFactory
context
- Lambda Context