Class Dependency.Builder

All Implemented Interfaces:
Prototype.Builder<Dependency.Builder, Dependency>, Builder<Dependency.Builder, Dependency>, Supplier<Dependency>
Enclosing interface:
Dependency

public static class Dependency.Builder extends Dependency.BuilderBase<Dependency.Builder, Dependency> implements Builder<Dependency.Builder, Dependency>
Fluent API builder for Dependency.
  • Method Details

    • buildPrototype

      public Dependency buildPrototype()
      Create an instance of the prototype. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.
      Specified by:
      buildPrototype in interface Prototype.Builder<Dependency.Builder, Dependency>
      Returns:
      an instance of the setup object created from this builder
    • build

      public Dependency build()
      Create an instance from this builder. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.
      Specified by:
      build in interface Builder<Dependency.Builder, Dependency>
      Returns:
      instance of the built type