GigaSpaces XAP 9.0 API

org.openspaces.pu.container.jee.jetty
Class JettyProcessingUnitContainer

java.lang.Object
  extended by org.openspaces.pu.container.jee.jetty.JettyProcessingUnitContainer
All Implemented Interfaces:
JeeProcessingUnitContainer, ProcessingUnitContainer, ApplicationContextProcessingUnitContainer, ServiceDetailsProvider

public class JettyProcessingUnitContainer
extends Object
implements JeeProcessingUnitContainer

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
JettyProcessingUnitContainer(ApplicationContext applicationContext, org.eclipse.jetty.webapp.WebAppContext webAppContext, org.eclipse.jetty.server.handler.ContextHandlerCollection contextHandlerCollection, JettyHolder jettyHolder, List<FreePortGenerator.PortHandle> portHandels)
           
 
Method Summary
 void close()
          Closes the processing unit container by destroying the web application and the Spring application context.
 ApplicationContext getApplicationContext()
          Returns the spring application context this processing unit container wraps.
 JeeServiceDetails getJeeDetails()
           
 ServiceDetails[] getServicesDetails()
          Retruns one or more service details that the service exposes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JettyProcessingUnitContainer

public JettyProcessingUnitContainer(ApplicationContext applicationContext,
                                    org.eclipse.jetty.webapp.WebAppContext webAppContext,
                                    org.eclipse.jetty.server.handler.ContextHandlerCollection contextHandlerCollection,
                                    JettyHolder jettyHolder,
                                    List<FreePortGenerator.PortHandle> portHandels)
Method Detail

getApplicationContext

public ApplicationContext getApplicationContext()
Returns the spring application context this processing unit container wraps.

Specified by:
getApplicationContext in interface ApplicationContextProcessingUnitContainer

getServicesDetails

public ServiceDetails[] getServicesDetails()
Description copied from interface: ServiceDetailsProvider
Retruns one or more service details that the service exposes.

Specified by:
getServicesDetails in interface ServiceDetailsProvider

getJeeDetails

public JeeServiceDetails getJeeDetails()

close

public void close()
           throws CannotCloseContainerException
Closes the processing unit container by destroying the web application and the Spring application context.

Specified by:
close in interface ProcessingUnitContainer
Throws:
CannotCloseContainerException

GigaSpaces XAP 9.0 API

Copyright © GigaSpaces.