public abstract class OciFunction
extends java.lang.Object
implements java.lang.AutoCloseable
Constructor and Description |
---|
OciFunction()
Default constructor.
|
OciFunction(io.micronaut.context.ApplicationContext applicationContext)
Construct a function with the given context.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected boolean |
enableSharedJackson() |
io.micronaut.context.ApplicationContext |
getApplicationContext() |
protected io.micronaut.context.ApplicationContextBuilder |
newApplicationContextBuilder(com.fnproject.fn.api.RuntimeContext ctx)
Construct the application context with the given builder.
|
protected void |
setup(com.fnproject.fn.api.RuntimeContext ctx)
Setup method that can be overridden by users to add customizations.
|
void |
setupContext(com.fnproject.fn.api.RuntimeContext ctx)
Sets of the function and creates the application context.
|
public OciFunction()
public OciFunction(io.micronaut.context.ApplicationContext applicationContext)
applicationContext
- The application contextpublic final void setupContext(com.fnproject.fn.api.RuntimeContext ctx)
ctx
- The application context.protected void setup(com.fnproject.fn.api.RuntimeContext ctx)
ctx
- The runtime contextprotected boolean enableSharedJackson()
@NonNull public final io.micronaut.context.ApplicationContext getApplicationContext()
@NonNull protected io.micronaut.context.ApplicationContextBuilder newApplicationContextBuilder(com.fnproject.fn.api.RuntimeContext ctx)
ctx
- The contextpublic void close()
close
in interface java.lang.AutoCloseable