Common functions

Looking for available examples to define common functions that can be used by Controller actions.
Preferrably able to pass LivyManager.

Can you please reframe the question to be more specific?

Try to explain what you’re trying to achieve, adding as much detail as possible, so that a simple answer can be given.

Don’t take for granted that everyone knows what context you’re working in (LivyManager? Is it related to Apache Livy? Is the web-ui? How do you mean to interact with that using play?)

You say “Controller actions”.

Do you mean this?

Or just your route entrypoints? I’ve seen it referred to as such and I’m not sure which is right or wrong?

You say “able to pass LivyManager”.

Do you mean inject it? With Guice? Or do you mean something else?