Package org.glassfish.jersey.server
Class ApplicationConfigurator
java.lang.Object
org.glassfish.jersey.server.ApplicationConfigurator
- All Implemented Interfaces:
BootstrapConfigurator
Configurator which initializes and register
Application
instance into InjectionManager
and
BootstrapBag
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate javax.ws.rs.core.Application
private Class<? extends javax.ws.rs.core.Application>
-
Constructor Summary
ConstructorsConstructorDescriptionApplicationConfigurator
(Class<? extends javax.ws.rs.core.Application> applicationClass) InitializeApplication
from provided class.ApplicationConfigurator
(javax.ws.rs.core.Application application) InitializeApplication
from provided instance. -
Method Summary
Modifier and TypeMethodDescriptionprivate static javax.ws.rs.core.Application
createApplication
(InjectionManager injectionManager, Class<? extends javax.ws.rs.core.Application> applicationClass, Value<Collection<ComponentProvider>> componentProvidersValue) void
init
(InjectionManager injectionManager, BootstrapBag bootstrapBag) Pre-initialization method should only register services intoInjectionManager
and populateBootstrapBag
.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
-
application
private javax.ws.rs.core.Application application -
applicationClass
-
-
Constructor Details
-
ApplicationConfigurator
ApplicationConfigurator(javax.ws.rs.core.Application application) InitializeApplication
from provided instance.- Parameters:
application
- application instance.
-
ApplicationConfigurator
ApplicationConfigurator(Class<? extends javax.ws.rs.core.Application> applicationClass) InitializeApplication
from provided class.- Parameters:
applicationClass
- application class.
-
-
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.
-
createApplication
private static javax.ws.rs.core.Application createApplication(InjectionManager injectionManager, Class<? extends javax.ws.rs.core.Application> applicationClass, Value<Collection<ComponentProvider>> componentProvidersValue)
-