Package org.glassfish.jersey.server
Class ResourceModelConfigurator
java.lang.Object
org.glassfish.jersey.server.ResourceModelConfigurator
- All Implemented Interfaces:
BootstrapConfigurator
Configurator which binds providers and resources into
InjectionManager
.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
bindEnhancingResourceClasses
(InjectionManager injectionManager, ServerBootstrapBag bootstrapBag, ResourceModel resourceModel, ResourceBag resourceBag, ResourceConfig runtimeConfig) private void
bindProvidersAndResources
(InjectionManager injectionManager, ServerBootstrapBag bootstrapBag, ComponentBag componentBag, Collection<Class<?>> resourceClasses, Collection<Object> resourceInstances, ResourceConfig runtimeConfig) private boolean
bindWithComponentProvider
(Class<?> component, ContractProvider providerModel, Iterable<ComponentProvider> componentProviders) void
init
(InjectionManager injectionManager, BootstrapBag bootstrapBag) Pre-initialization method should only register services intoInjectionManager
and populateBootstrapBag
.private ResourceModel
processResourceModel
(Collection<ModelProcessor> modelProcessors, ResourceModel resourceModel, ResourceConfig runtimeConfig) 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
postInit
-
Field Details
-
LOGGER
-
-
Constructor Details
-
ResourceModelConfigurator
public ResourceModelConfigurator()
-
-
Method Details
-
init
Description copied from interface:BootstrapConfigurator
Pre-initialization method should only register services intoInjectionManager
and populateBootstrapBag
.- Specified by:
init
in interfaceBootstrapConfigurator
- Parameters:
injectionManager
- not completed injection manager.bootstrapBag
- bootstrap bag with services used in following processing.
-
processResourceModel
private ResourceModel processResourceModel(Collection<ModelProcessor> modelProcessors, ResourceModel resourceModel, ResourceConfig runtimeConfig) -
bindEnhancingResourceClasses
private void bindEnhancingResourceClasses(InjectionManager injectionManager, ServerBootstrapBag bootstrapBag, ResourceModel resourceModel, ResourceBag resourceBag, ResourceConfig runtimeConfig) -
bindProvidersAndResources
private void bindProvidersAndResources(InjectionManager injectionManager, ServerBootstrapBag bootstrapBag, ComponentBag componentBag, Collection<Class<?>> resourceClasses, Collection<Object> resourceInstances, ResourceConfig runtimeConfig) -
bindWithComponentProvider
private boolean bindWithComponentProvider(Class<?> component, ContractProvider providerModel, Iterable<ComponentProvider> componentProviders)
-