Class AbstractOpenemsAppWithProps.Singleton<T>

java.lang.Object
io.openems.edge.core.appmanager.AbstractOpenemsAppWithProps.Singleton<T>
Enclosing class:
AbstractOpenemsAppWithProps<APP extends AbstractOpenemsAppWithProps<APP,PROPERTY,PARAMETER>,PROPERTY extends Type<PROPERTY,APP,PARAMETER> & Nameable,PARAMETER>

public static final class AbstractOpenemsAppWithProps.Singleton<T> extends Object
  • Constructor Details

    • Singleton

      public Singleton(Supplier<T> objectSupplier)
  • Method Details

    • get

      public final T get()
      Gets the value. If the value hasn't been created yet it gets created.
      Returns:
      the value