This is the simple Interface that Funcatron uses. Implement the Func interface and you're ready to go.
See the intf API docs
Just include the funcatron/intf
artifact
and a funcatron.json
or funcatron.yml
file in an UberJAR
and Bob's your Uncle.