Class AbstractFeatureConfigurator<T>
java.lang.Object
org.glassfish.jersey.internal.AbstractServiceFinderConfigurator<T>
org.glassfish.jersey.AbstractFeatureConfigurator<T>
- All Implemented Interfaces:
BootstrapConfigurator
- Direct Known Subclasses:
DynamicFeatureConfigurator, FeatureConfigurator
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractFeatureConfigurator(Class contract, RuntimeType runtimeType) Create a new configurator. -
Method Summary
Modifier and TypeMethodDescriptionloadImplementations(Map<String, Object> applicationProperties, ClassLoader loader) Specification specific implementation which allows find classes by specified classloaderprotected voidregisterFeatures(Collection<Class<T>> features, BootstrapBag bootstrapBag) Allows feature registration as part of autoDiscoverables listMethods inherited from class AbstractServiceFinderConfigurator
getContract, getRuntimeType, loadImplementationsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BootstrapConfigurator
init, postInit
-
Constructor Details
-
AbstractFeatureConfigurator
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
protected List<Class<T>> loadImplementations(Map<String, Object> applicationProperties, ClassLoader loader) Specification specific implementation which allows find classes by specified classloader- Parameters:
applicationProperties- map of properties to check if search is allowedloader- specific classloader (must not be NULL)- Returns:
- list of found classes
-
registerFeatures
Allows feature registration as part of autoDiscoverables list- Parameters:
features- list of features to be registeredbootstrapBag- place where features are being registered
-