T
- contract type.public abstract class AbstractServiceFinderConfigurator<T> extends java.lang.Object implements BootstrapConfigurator
ServiceFinder
and registers found instances to
InjectionManager
.Modifier and Type | Field and Description |
---|---|
private java.lang.Class<T> |
contract |
private javax.ws.rs.RuntimeType |
runtimeType |
Modifier | Constructor and Description |
---|---|
protected |
AbstractServiceFinderConfigurator(java.lang.Class<T> contract,
javax.ws.rs.RuntimeType runtimeType)
Create a new configurator.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.List<java.lang.Class<T>> |
loadImplementations(java.util.Map<java.lang.String,java.lang.Object> applicationProperties)
Load all particular implementations of the type
T using ServiceFinder . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
init, postInit
private final java.lang.Class<T> contract
private final javax.ws.rs.RuntimeType runtimeType
protected AbstractServiceFinderConfigurator(java.lang.Class<T> contract, javax.ws.rs.RuntimeType runtimeType)
contract
- contract of the service providers bound by this binder.runtimeType
- runtime (client or server) where the service finder binder is used.protected java.util.List<java.lang.Class<T>> loadImplementations(java.util.Map<java.lang.String,java.lang.Object> applicationProperties)
T
using ServiceFinder
.applicationProperties
- map containing application properties. May be null
T
.