Factory

@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class Factory(source)

A factory for the graph extension.

Graph extension factories work the same as DependencyGraph.Factory except they do not support standalone graph factory generation (since they are generated by the parent graphs.)

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

Contributing

You can use ContributesTo to contribute this factory (if it is an interface) automatically to parent scopes.