Interface BundleBuilder

  • All Implemented Interfaces:

    
    public 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());
        }
    }
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Iterable<Dag> getDags() Returns all Dags that belong to this bundle.
      Bundle build() Constructs a Bundle from the Dags returned by getDags.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail