I
- The request body typeO
- The response body typepublic abstract class MicronautRequestHandler<I,O>
extends io.micronaut.function.executor.AbstractFunctionExecutor<I,O,com.amazonaws.services.lambda.runtime.Context>
implements com.amazonaws.services.lambda.runtime.RequestHandler<I,O>
An Amazon Lambda RequestHandler
implementation for Micronaut FunctionBean
Modifier and Type | Field and Description |
---|---|
protected io.micronaut.context.ApplicationContext |
applicationContext |
Constructor and Description |
---|
MicronautRequestHandler() |
Modifier and Type | Method and Description |
---|---|
protected io.micronaut.context.ApplicationContext |
buildApplicationContext(com.amazonaws.services.lambda.runtime.Context context) |
protected I |
convertInput(java.lang.Object input)
Converts the input the required type.
|
O |
handleRequest(I input,
com.amazonaws.services.lambda.runtime.Context context) |
protected io.micronaut.context.ApplicationContextBuilder |
newApplicationContextBuilder() |
protected io.micronaut.inject.ExecutableMethod<java.lang.Object,java.lang.Object> |
resolveFunction(io.micronaut.function.LocalFunctionRegistry arg0,
java.lang.String arg1) |
protected java.lang.String |
resolveFunctionName(io.micronaut.context.env.Environment arg0) |
protected io.micronaut.context.env.Environment |
startEnvironment(io.micronaut.context.ApplicationContext arg0) |
protected io.micronaut.context.ApplicationContext applicationContext
public final O handleRequest(I input, com.amazonaws.services.lambda.runtime.Context context)
protected I convertInput(java.lang.Object input)
input
- The inputjava.lang.IllegalArgumentException
- If input cannot be convertedprotected io.micronaut.context.ApplicationContext buildApplicationContext(com.amazonaws.services.lambda.runtime.Context context)
protected io.micronaut.inject.ExecutableMethod<java.lang.Object,java.lang.Object> resolveFunction(io.micronaut.function.LocalFunctionRegistry arg0, java.lang.String arg1)
protected java.lang.String resolveFunctionName(io.micronaut.context.env.Environment arg0)
@Nonnull protected io.micronaut.context.ApplicationContextBuilder newApplicationContextBuilder()
protected io.micronaut.context.env.Environment startEnvironment(io.micronaut.context.ApplicationContext arg0)