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 registerApplication
instance intoInjectionManager
andBootstrapBag
.
-
-
Field Summary
Fields Modifier and Type Field Description private javax.ws.rs.core.Application
application
private 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)
InitializeApplication
from provided class.ApplicationConfigurator(javax.ws.rs.core.Application application)
InitializeApplication
from provided instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
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
-
-
-
-
Constructor Detail
-
ApplicationConfigurator
ApplicationConfigurator(javax.ws.rs.core.Application application)
InitializeApplication
from provided instance.- Parameters:
application
- application instance.
-
ApplicationConfigurator
ApplicationConfigurator(java.lang.Class<? extends javax.ws.rs.core.Application> applicationClass)
InitializeApplication
from provided class.- Parameters:
applicationClass
- application class.
-
-
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.
-
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)
-
-