public abstract class FunctionScript
extends io.micronaut.function.executor.FunctionInitializer
implements io.micronaut.context.env.PropertySource
Modifier and Type | Field and Description |
---|---|
protected io.micronaut.context.ApplicationContext |
applicationContext |
Modifier | Constructor and Description |
---|---|
|
FunctionScript()
Constuctor.
|
protected |
FunctionScript(io.micronaut.context.ApplicationContext applicationContext)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addProperty(java.lang.String name,
java.lang.Object value)
Add a property to the script.
|
protected io.micronaut.context.ApplicationContext |
buildApplicationContext(C arg0) |
java.lang.Object |
get(java.lang.String key) |
java.lang.String |
getName() |
protected void |
injectThis(io.micronaut.context.ApplicationContext applicationContext) |
java.util.Iterator<java.lang.String> |
iterator() |
protected io.micronaut.context.ApplicationContextBuilder |
newApplicationContextBuilder() |
protected io.micronaut.inject.ExecutableMethod<java.lang.Object,java.lang.Object> |
resolveFunction(io.micronaut.function.LocalFunctionRegistry arg0,
java.lang.String arg1) |
protected java.lang.String |
resolveFunctionName(io.micronaut.context.env.Environment arg0) |
protected io.micronaut.context.env.Environment |
startEnvironment(io.micronaut.context.ApplicationContext arg0) |
protected void |
startThis(io.micronaut.context.ApplicationContext applicationContext) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
protected io.micronaut.context.ApplicationContext applicationContext
public FunctionScript()
protected FunctionScript(io.micronaut.context.ApplicationContext applicationContext)
applicationContext
- applicationContext@Internal public java.lang.Object get(java.lang.String key)
get
in interface io.micronaut.context.env.PropertySource
public final java.lang.String getName()
getName
in interface io.micronaut.context.env.PropertySource
@Internal public java.util.Iterator<java.lang.String> iterator()
iterator
in interface java.lang.Iterable<java.lang.String>
protected void addProperty(java.lang.String name, java.lang.Object value)
name
- name of the propertyvalue
- value@Internal protected void startThis(io.micronaut.context.ApplicationContext applicationContext)
startThis
in class io.micronaut.function.executor.FunctionInitializer
@Internal protected void injectThis(io.micronaut.context.ApplicationContext applicationContext)
injectThis
in class io.micronaut.function.executor.FunctionInitializer
protected io.micronaut.inject.ExecutableMethod<java.lang.Object,java.lang.Object> resolveFunction(io.micronaut.function.LocalFunctionRegistry arg0, java.lang.String arg1)
protected java.lang.String resolveFunctionName(io.micronaut.context.env.Environment arg0)
protected io.micronaut.context.ApplicationContext buildApplicationContext(@Nullable C arg0)
@Nonnull protected io.micronaut.context.ApplicationContextBuilder newApplicationContextBuilder()
protected io.micronaut.context.env.Environment startEnvironment(io.micronaut.context.ApplicationContext arg0)