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:
AbstractFeatureConfigurator,AutoDiscoverableConfigurator
public abstract class AbstractServiceFinderConfigurator<T> extends Object implements BootstrapConfigurator
Simple ServiceFinder configuration. Looks for all implementations of a given contract usingServiceFinderand registers found instances toInjectionManager.- Author:
- Petr Bouda
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractServiceFinderConfigurator(Class<T> contract, RuntimeType runtimeType)Create a new configurator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Class<T>getContract()Mainly aimed to provide contract class to abstract classes which extends this finderprotected RuntimeTypegetRuntimeType()Mainly aimed to provide runtime type to abstract classes which extends this finderprotected List<Class<T>>loadImplementations(Map<String,Object> applicationProperties)Load all particular implementations of the typeTusingServiceFinder.-
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
-
-
-
-
Constructor Detail
-
AbstractServiceFinderConfigurator
protected AbstractServiceFinderConfigurator(Class<T> contract, RuntimeType runtimeType)
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 Detail
-
loadImplementations
protected List<Class<T>> loadImplementations(Map<String,Object> applicationProperties)
Load all particular implementations of the typeTusingServiceFinder.- Parameters:
applicationProperties- map containing application properties. May benull- Returns:
- all registered classes of the type
T.
-
getRuntimeType
protected RuntimeType getRuntimeType()
Mainly aimed to provide runtime type to abstract classes which extends this finder- Returns:
- runtime type
-
-