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 registerComponentProvider
instances 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()
void
init(InjectionManager injectionManager, BootstrapBag bootstrapBag)
Pre-initialization method should only register services intoInjectionManager
and populateBootstrapBag
.void
postInit(InjectionManager injectionManager, BootstrapBag bootstrapBag)
Post-initialization method can get services fromInjectionManager
and 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: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.
-
postInit
public void postInit(InjectionManager injectionManager, BootstrapBag bootstrapBag)
Description copied from interface:BootstrapConfigurator
Post-initialization method can get services fromInjectionManager
and is not able to register the new one because injection manager is already completed.- Specified by:
postInit
in 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
-
-