azure-functions-extension icon indicating copy to clipboard operation
azure-functions-extension copied to clipboard

Java library for bindings doesn't exist

Open jeffhollan opened this issue 4 years ago • 1 comments

Java uses an attribute model similar to .NET, but the library is created here: https://github.com/azure/azure-functions-java-library

There isn't a great way using that library to do a flexible custom trigger / binding. It's very limited today. This is the closest I can get:

            @CustomBinding(name = "triggerData", direction = "in", type = "daprBindingTrigger") byte[] triggerData,
            final ExecutionContext context) throws UnsupportedEncodingException {
        context.getLogger().info("Java HTTP trigger processed a request.");

But it doesn't let me define other function.json properties I need like BindingName - so fully blocked for now

jeffhollan avatar Jun 03 '20 20:06 jeffhollan

Thanks @jeffhollan for pointing this out. I might need Connor's help to fully understand/fix the issue.

wenhzha avatar Jun 03 '20 23:06 wenhzha