Class JettyProcessingUnitContainer
java.lang.Object
org.openspaces.pu.container.ProcessingUnitContainer
org.openspaces.pu.container.spi.ApplicationContextProcessingUnitContainer
org.openspaces.pu.container.jee.JeeProcessingUnitContainer
org.openspaces.pu.container.jee.jetty.JettyProcessingUnitContainer
- All Implemented Interfaces:
ServiceDetailsProvider
The actual container simply holding the jetty web application context, the application context,
and the
JettyHolder. They are used when
closing this container.- Author:
- kimchy
-
Constructor Summary
ConstructorsConstructorDescriptionJettyProcessingUnitContainer(org.springframework.context.ApplicationContext applicationContext, org.eclipse.jetty.ee10.webapp.WebAppContext webAppContext, org.eclipse.jetty.server.handler.ContextHandlerCollection contextHandlerCollection, JettyHolder jettyHolder, Collection<FreePortGenerator.PortHandle> portHandels) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the processing unit container by destroying the web application and the Spring application context.org.springframework.context.ApplicationContextReturns the spring application context this processing unit container wraps.Retruns one or more service details that the service exposes.Methods inherited from class org.openspaces.pu.container.jee.JeeProcessingUnitContainer
getServiceDetailsProvidersMethods inherited from class org.openspaces.pu.container.spi.ApplicationContextProcessingUnitContainer
getDumpProcessors, getInvocableServices, getMemberAliveIndicators, getQuiesceStateChangedListeners, getServiceMonitorsProviders, getUndeployListeners
-
Constructor Details
-
JettyProcessingUnitContainer
public JettyProcessingUnitContainer(org.springframework.context.ApplicationContext applicationContext, org.eclipse.jetty.ee10.webapp.WebAppContext webAppContext, org.eclipse.jetty.server.handler.ContextHandlerCollection contextHandlerCollection, JettyHolder jettyHolder, Collection<FreePortGenerator.PortHandle> portHandels)
-
-
Method Details
-
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext()Returns the spring application context this processing unit container wraps.- Specified by:
getApplicationContextin classApplicationContextProcessingUnitContainer
-
getServicesDetails
Description copied from interface:ServiceDetailsProviderRetruns one or more service details that the service exposes. -
getJeeDetails
-
close
Closes the processing unit container by destroying the web application and the Spring application context.- Overrides:
closein classProcessingUnitContainer- Throws:
CannotCloseContainerException
-