All Downloads are FREE. Search and download functionalities are using the official Maven repository.

me.ccampo.spring.aws.lambda.VoidRequestHandler Maven / Gradle / Ivy

Go to download

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