Package org.wildfly.clustering.service
Class FunctionSupplierDependency<T,R>
- java.lang.Object
-
- org.wildfly.clustering.service.FunctionSupplierDependency<T,R>
-
- All Implemented Interfaces:
Supplier<R>,Dependency,SupplierDependency<R>
public class FunctionSupplierDependency<T,R> extends Object implements SupplierDependency<R>
ASupplierDependencythat applies a mapping to the source dependency value.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description FunctionSupplierDependency(SupplierDependency<T> dependency, Function<T,R> mapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rget()<V> ServiceBuilder<V>register(ServiceBuilder<V> builder)
-
-
-
Constructor Detail
-
FunctionSupplierDependency
public FunctionSupplierDependency(SupplierDependency<T> dependency, Function<T,R> mapper)
-
-
Method Detail
-
register
public <V> ServiceBuilder<V> register(ServiceBuilder<V> builder)
- Specified by:
registerin interfaceDependency
-
-