Package org.wildfly.clustering.service
Class ServiceSupplierDependency<V>
- java.lang.Object
-
- org.wildfly.clustering.service.SimpleServiceNameProvider
-
- org.wildfly.clustering.service.ServiceSupplierDependency<V>
-
- All Implemented Interfaces:
Supplier<V>,Dependency,ServiceNameProvider,SupplierDependency<V>
public class ServiceSupplierDependency<V> extends SimpleServiceNameProvider implements SupplierDependency<V>
Encapsulates aDependencyon aServicethat supplies a value.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description ServiceSupplierDependency(ServiceName name)ServiceSupplierDependency(ServiceNameProvider provider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Vget()<T> ServiceBuilder<T>register(ServiceBuilder<T> builder)-
Methods inherited from class org.wildfly.clustering.service.SimpleServiceNameProvider
equals, getServiceName, hashCode, toString
-
-
-
-
Constructor Detail
-
ServiceSupplierDependency
public ServiceSupplierDependency(ServiceName name)
-
ServiceSupplierDependency
public ServiceSupplierDependency(ServiceNameProvider provider)
-
-
Method Detail
-
register
public <T> ServiceBuilder<T> register(ServiceBuilder<T> builder)
- Specified by:
registerin interfaceDependency
-
-