![JAR search and dependency download from the Maven repository](/logo.png)
me.ccampo.spring.aws.lambda.VoidRequestHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-aws-lambda Show documentation
Show all versions of spring-aws-lambda Show documentation
A Java library to enable core Spring Framework dependency injection support and eliminate some boilerplate around AWS Lambda.
The newest version!
package me.ccampo.spring.aws.lambda;
import com.amazonaws.services.lambda.runtime.Context;
import com.amazonaws.services.lambda.runtime.RequestHandler;
import org.jetbrains.annotations.Contract;
import org.jetbrains.annotations.Nullable;
/**
* Convenience class which represents a {@link RequestHandler} that returns nothing.
*/
public abstract class VoidRequestHandler implements RequestHandler {
@Override
@Contract("_,_ -> null")
@Nullable
public final Void handleRequest(final T input, final Context context) {
handle(input, context);
return null;
}
public abstract void handle(final T input, final Context context);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy