BundleBuilder

interface BundleBuilder

Entry point for declaring the Dags that this bundle contains.

Implement this interface to create a Dag bundle to be served by Server.

public class MyBundleBuilder implements BundleBuilder {
@Override
public Iterable<Dag> getDags() {
return List.of(MyDagBuilder.build());
}

public static void main(String[] args) {
Server.create(args).serve(new MyBundleBuilder().build());
}
}

Functions

Link copied to clipboard
open fun build(): Bundle

Constructs a Bundle from the Dags returned by getDags.

Link copied to clipboard
abstract fun getDags(): Iterable<Dag>

Returns all Dags that belong to this bundle.