AppFunctionConfiguration.Builder


class AppFunctionConfiguration.Builder


A builder for AppFunctionConfiguration.

Summary

Public constructors

Public functions

AppFunctionConfiguration.Builder
<T : Any> addEnclosingClassFactory(enclosingClass: Class<T>, factory: () -> T)

Adds a factory for creating an enclosingClass.

AppFunctionConfiguration

Builds the AppFunctionConfiguration.

Public constructors

Builder

Added in 1.0.0-alpha01
Builder()

Public functions

addEnclosingClassFactory

Added in 1.0.0-alpha01
fun <T : Any> addEnclosingClassFactory(enclosingClass: Class<T>, factory: () -> T): AppFunctionConfiguration.Builder

Adds a factory for creating an enclosingClass.

If there is already a factory instance set for enclosingClass, it will be overridden.

Parameters
enclosingClass: Class<T>

The Class object representing the enclosing class to be instantiated.

factory: () -> T

The factory to create the instance of enclosingClass. This is called by the AppFunctions framework to instantiate the class whenever an instance of enclosingClass is needed.

See also
AppFunction