Class ElementScopedElementSupplier

java.lang.Object
dev.getelements.elements.sdk.spi.ElementScopedElementSupplier
All Implemented Interfaces:
ElementSupplier, Supplier<Element>

public class ElementScopedElementSupplier extends Object implements ElementSupplier
Maintains a singleton instance of an Element.
  • Constructor Details

    • ElementScopedElementSupplier

      public ElementScopedElementSupplier()
  • Method Details

    • get

      public Element get()
      Specified by:
      get in interface Supplier<Element>
    • setInstance

      public static void setInstance(Element instance)
      Called by the SPI Interfaces to set the instance.
      Parameters:
      instance - the instance to set.