Factory

annotation class Factory(val scope: KClass<*>)(source)

A factory for the contributed graph extension.

Each contributed graph extension must have a factory interface as an inner class. The body of the factory function will be generated when the parent graph is merged.

The factory interface must have a single function with the contributed graph extension as its return type. Parameters are supported as mentioned in ContributesGraphExtension.

Properties

Link copied to clipboard
val scope: KClass<*>

The parent scope in which to include this contributed graph interface. The graph that this is contributed to must be extendable.