Class Elements

java.lang.Object
org.elasticsearch.common.inject.spi.Elements

public final class Elements extends Object
Exposes elements of a module so they can be inspected, validated or rewritten.
Since:
2.0
  • Constructor Details

    • Elements

      public Elements()
  • Method Details

    • getElements

      public static List<Element> getElements(Module... modules)
      Records the elements executed by modules.
    • getElements

      public static List<Element> getElements(Iterable<? extends Module> modules)
      Records the elements executed by modules.
    • getElements

      public static List<Element> getElements(Stage stage, Iterable<? extends Module> modules)
      Records the elements executed by modules.
    • getModule

      public static Module getModule(Iterable<? extends Element> elements)
      Returns the module composed of elements.