class ComponentProviderConfigurator extends java.lang.Object implements BootstrapConfigurator
ComponentProvider
instances into BootstrapBag
.Modifier and Type | Field and Description |
---|---|
private static java.util.Comparator<RankedProvider<ComponentProvider>> |
RANKED_COMPARATOR |
Constructor and Description |
---|
ComponentProviderConfigurator() |
Modifier and Type | Method and Description |
---|---|
private static java.util.Collection<RankedProvider<ComponentProvider>> |
getRankedComponentProviders() |
void |
init(InjectionManager injectionManager,
BootstrapBag bootstrapBag)
Pre-initialization method should only register services into
InjectionManager and populate BootstrapBag . |
void |
postInit(InjectionManager injectionManager,
BootstrapBag bootstrapBag)
Post-initialization method can get services from
InjectionManager and is not able to register the new one because
injection manager is already completed. |
private static final java.util.Comparator<RankedProvider<ComponentProvider>> RANKED_COMPARATOR
public void init(InjectionManager injectionManager, BootstrapBag bootstrapBag)
BootstrapConfigurator
InjectionManager
and populate BootstrapBag
.init
in interface BootstrapConfigurator
injectionManager
- not completed injection manager.bootstrapBag
- bootstrap bag with services used in following processing.public void postInit(InjectionManager injectionManager, BootstrapBag bootstrapBag)
BootstrapConfigurator
InjectionManager
and is not able to register the new one because
injection manager is already completed.postInit
in interface BootstrapConfigurator
injectionManager
- already completed injection manager.bootstrapBag
- bootstrap bag with services used in following processing.private static java.util.Collection<RankedProvider<ComponentProvider>> getRankedComponentProviders() throws ServiceConfigurationError
ServiceConfigurationError