Package org.glassfish.jersey.internal
Interface BootstrapConfigurator
-
- All Known Implementing Classes:
AbstractExecutorProvidersConfigurator,AbstractFeatureConfigurator,AbstractServiceFinderConfigurator,AutoDiscoverableConfigurator,ContextResolverFactory.ContextResolversConfigurator,DynamicFeatureConfigurator,ExceptionMapperFactory.ExceptionMappersConfigurator,FeatureConfigurator,JaxrsProviders.ProvidersConfigurator,MessageBodyFactory.MessageBodyWorkersConfigurator,RequestScope.RequestScopeConfigurator
public interface BootstrapConfiguratorConfigurator which contains two methods,init(InjectionManager, BootstrapBag)containsInjectionManagerinto which only registering services make sense because injection manager has not been completed yet andpostInit(InjectionManager, BootstrapBag)in whichInjectionManagerhas been already completed and is able to create and provide services.The configurators should register instances into
InjectionManageronly if the instance must be really injectable if the instance can be used internally without the injection, then extendBootstrapBagand propagate the instance to correct services using constructors or methods in a phase of Jersey initialization.- Author:
- Petr Bouda
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidinit(org.glassfish.jersey.internal.inject.InjectionManager injectionManager, BootstrapBag bootstrapBag)Pre-initialization method should only register services intoInjectionManagerand populateBootstrapBag.default voidpostInit(org.glassfish.jersey.internal.inject.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.
-
-
-
Method Detail
-
init
void init(org.glassfish.jersey.internal.inject.InjectionManager injectionManager, BootstrapBag bootstrapBag)Pre-initialization method should only register services intoInjectionManagerand populateBootstrapBag.- Parameters:
injectionManager- not completed injection manager.bootstrapBag- bootstrap bag with services used in following processing.
-
postInit
default void postInit(org.glassfish.jersey.internal.inject.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.- Parameters:
injectionManager- already completed injection manager.bootstrapBag- bootstrap bag with services used in following processing.
-
-