Class JettyConfiguration
java.lang.Object
org.apache.juneau.microservice.jetty.JettyConfiguration
Microservice bootstrap.
Add this class to configurations(...) to enable a
Jetty-backed microservice:
Microservice
.
Contributes the following beans (each gated on @ConditionalOnMissingBean so user-supplied beans of the
same type win):
JettyServerFactory— defaults toBasicJettyServerFactory, used to build the JettyServerfromjetty.xml .JettySettings— empty defaults; user-supplied@Bean JettySettings can override ports,jetty.xml contents, and var-resolution.JettyServerComponent(always contributed, also registered underMicroserviceListener) — drives the Jetty server lifecycle via the microservice'sstart()/stop()fan-out.
Rest.path() during start-up. See JettyServerComponent for
full details.
See Also:
- Since:
- 10.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionContributes theJettyServerComponentbean under its own type for direct lookup by external callers.Contributes the default Jetty server factory used to build theServerfrom ajetty.xml file.Contributes the sameJettyServerComponentinstance underMicroserviceListener(namedjettyServerListener ) so it participates in theMicroservice.start()/Microservice.stop()fan-out without clobbering any user-supplied unnamedMicroserviceListener.Contributes an empty defaultJettySettingssoJettyServerComponentalways finds one in the store.
-
Constructor Details
-
JettyConfiguration
public JettyConfiguration()
-
-
Method Details
-
jettyServerFactory
Contributes the default Jetty server factory used to build theServerfrom ajetty.xml file.- Returns:
- The default factory.
-
jettySettings
Contributes an empty defaultJettySettingssoJettyServerComponentalways finds one in the store. Users who need programmatic overrides supply their own@Bean JettySettings .- Returns:
- The default empty settings.
-
jettyServerComponent
Contributes theJettyServerComponentbean under its own type for direct lookup by external callers.- Returns:
- The component instance.
-
jettyServerListener
Contributes the sameJettyServerComponentinstance underMicroserviceListener(namedjettyServerListener ) so it participates in theMicroservice.start()/Microservice.stop()fan-out without clobbering any user-supplied unnamedMicroserviceListener.- Returns:
- The component instance.
-