Package org.glassfish.jersey.server
Class ApplicationConfigurator
- java.lang.Object
-
- org.glassfish.jersey.server.ApplicationConfigurator
-
- All Implemented Interfaces:
BootstrapConfigurator
class ApplicationConfigurator extends java.lang.Object implements BootstrapConfigurator
Configurator which initializes and registerApplicationinstance intoInjectionManagerandBootstrapBag.
-
-
Field Summary
Fields Modifier and Type Field Description private javax.ws.rs.core.Applicationapplicationprivate java.lang.Class<? extends javax.ws.rs.core.Application>applicationClass
-
Constructor Summary
Constructors Constructor Description ApplicationConfigurator(java.lang.Class<? extends javax.ws.rs.core.Application> applicationClass)InitializeApplicationfrom provided class.ApplicationConfigurator(javax.ws.rs.core.Application application)InitializeApplicationfrom provided instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static javax.ws.rs.core.ApplicationcreateApplication(InjectionManager injectionManager, java.lang.Class<? extends javax.ws.rs.core.Application> applicationClass, Value<java.util.Collection<ComponentProvider>> componentProvidersValue)voidinit(InjectionManager injectionManager, BootstrapBag bootstrapBag)Pre-initialization method should only register services intoInjectionManagerand 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
-
-
-
-
Constructor Detail
-
ApplicationConfigurator
ApplicationConfigurator(javax.ws.rs.core.Application application)
InitializeApplicationfrom provided instance.- Parameters:
application- application instance.
-
ApplicationConfigurator
ApplicationConfigurator(java.lang.Class<? extends javax.ws.rs.core.Application> applicationClass)
InitializeApplicationfrom provided class.- Parameters:
applicationClass- application class.
-
-
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.
-
createApplication
private static javax.ws.rs.core.Application createApplication(InjectionManager injectionManager, java.lang.Class<? extends javax.ws.rs.core.Application> applicationClass, Value<java.util.Collection<ComponentProvider>> componentProvidersValue)
-
-