Class DelegatingSupplier<T>

java.lang.Object
org.jboss.as.server.deployment.DelegatingSupplier<T>
Type Parameters:
T - the type of objects that may be supplied by this supplier.
All Implemented Interfaces:
Supplier<T>

@Deprecated(forRemoval=true) public final class DelegatingSupplier<T> extends Object implements Supplier<T>
Deprecated, for removal: This API element is subject to removal in a future version.
To be removed without replacement.
A supplier which delegates to other supplier if it is configured.
Author:
Richard Opalka
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets delegating supplier value or null if supplier is not configured.
    void
    set(Supplier<T> delegate)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Sets supplier to delegate to.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DelegatingSupplier

      public DelegatingSupplier()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • get

      public T get()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets delegating supplier value or null if supplier is not configured.
      Specified by:
      get in interface Supplier<T>
      Returns:
      delegating supplier value
    • set

      public void set(Supplier<T> delegate)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets supplier to delegate to.
      Parameters:
      delegate - supplier to delegate to