Package org.glassfish.jersey.internal
Class AbstractServiceFinderConfigurator<T>
java.lang.Object
org.glassfish.jersey.internal.AbstractServiceFinderConfigurator<T>
- Type Parameters:
T
- contract type.
- All Implemented Interfaces:
BootstrapConfigurator
- Direct Known Subclasses:
AutoDiscoverableConfigurator
,ContainerProviderConfigurator
public abstract class AbstractServiceFinderConfigurator<T>
extends Object
implements BootstrapConfigurator
Simple ServiceFinder configuration.
Looks for all implementations of a given contract using
ServiceFinder
and registers found instances to
InjectionManager
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final javax.ws.rs.RuntimeType
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractServiceFinderConfigurator
(Class<T> contract, javax.ws.rs.RuntimeType runtimeType) Create a new configurator. -
Method Summary
Modifier and TypeMethodDescriptionloadImplementations
(Map<String, Object> applicationProperties) Load all particular implementations of the typeT
usingServiceFinder
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.glassfish.jersey.internal.BootstrapConfigurator
init, postInit
-
Field Details
-
contract
-
runtimeType
private final javax.ws.rs.RuntimeType runtimeType
-
-
Constructor Details
-
AbstractServiceFinderConfigurator
Create a new configurator.- Parameters:
contract
- contract of the service providers bound by this binder.runtimeType
- runtime (client or server) where the service finder binder is used.
-
-
Method Details
-
loadImplementations
Load all particular implementations of the typeT
usingServiceFinder
.- Parameters:
applicationProperties
- map containing application properties. May benull
- Returns:
- all registered classes of the type
T
.
-