Package org.glassfish.jersey.server
Class ComponentProviderConfigurator
- java.lang.Object
-
- org.glassfish.jersey.server.ComponentProviderConfigurator
-
- All Implemented Interfaces:
BootstrapConfigurator
class ComponentProviderConfigurator extends java.lang.Object implements BootstrapConfigurator
Configurator which initializes and registerComponentProviderinstances intoBootstrapBag.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Comparator<RankedProvider<ComponentProvider>>RANKED_COMPARATOR
-
Constructor Summary
Constructors Constructor Description ComponentProviderConfigurator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static java.util.Collection<RankedProvider<ComponentProvider>>getRankedComponentProviders()voidinit(InjectionManager injectionManager, BootstrapBag bootstrapBag)Pre-initialization method should only register services intoInjectionManagerand populateBootstrapBag.voidpostInit(InjectionManager injectionManager, BootstrapBag bootstrapBag)Post-initialization method can get services fromInjectionManagerand is not able to register the new one because injection manager is already completed.
-
-
-
Field Detail
-
RANKED_COMPARATOR
private static final java.util.Comparator<RankedProvider<ComponentProvider>> RANKED_COMPARATOR
-
-
Method Detail
-
init
public void init(InjectionManager injectionManager, BootstrapBag bootstrapBag)
Description copied from interface:BootstrapConfiguratorPre-initialization method should only register services intoInjectionManagerand populateBootstrapBag.- Specified by:
initin interfaceBootstrapConfigurator- Parameters:
injectionManager- not completed injection manager.bootstrapBag- bootstrap bag with services used in following processing.
-
postInit
public void postInit(InjectionManager injectionManager, BootstrapBag bootstrapBag)
Description copied from interface:BootstrapConfiguratorPost-initialization method can get services fromInjectionManagerand is not able to register the new one because injection manager is already completed.- Specified by:
postInitin interfaceBootstrapConfigurator- Parameters:
injectionManager- already completed injection manager.bootstrapBag- bootstrap bag with services used in following processing.
-
getRankedComponentProviders
private static java.util.Collection<RankedProvider<ComponentProvider>> getRankedComponentProviders() throws ServiceConfigurationError
- Throws:
ServiceConfigurationError
-
-