Package org.jboss.as.server.deployment
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>
public final class DelegatingSupplier<T> extends Object implements Supplier<T>
A supplier which delegates to other supplier if it is configured.- Author:
- Richard Opalka
-
-
Constructor Summary
Constructors Constructor Description DelegatingSupplier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tget()Gets delegating supplier value ornullif supplier is not configured.voidset(Supplier<T> delegate)Sets supplier to delegate to.
-
-
-
Method Detail
-
get
public T get()
Gets delegating supplier value ornullif supplier is not configured.
-
-