Class DummySupplier

java.lang.Object
ch.ivyteam.ivy.jsf.primefaces.legazy.DummySupplier
All Implemented Interfaces:
Serializable, Supplier<Object>, org.primefaces.util.SerializableSupplier<Object>

public class DummySupplier extends Object implements org.primefaces.util.SerializableSupplier<Object>

You can use this class in ivyScript if you want to provide an object in a Supplier. E.g. in Java you can write () -> object which is not possible in ivyScript. Instead you can write new DummySupplier(object).

This class is used by the Primefaces 11 Migration to provide a stream to DefaultStreamedContent.builder().stream(...) method which needs a Supplier as parameter.
Since:
9.4
See Also:
API:
This is a public API.
  • Constructor Details

    • DummySupplier

      public DummySupplier(Object object)
      API:
      This public API is available in Java.