Package org.glassfish.jersey
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
ModifierConstructorDescriptionprotected
AbstractFeatureConfigurator
(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 void
registerFeatures
(Collection<Class<T>> features, BootstrapBag bootstrapBag) Allows feature registration as part of autoDiscoverables listMethods inherited from class org.glassfish.jersey.internal.AbstractServiceFinderConfigurator
getContract, getRuntimeType, loadImplementations
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 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
-