GigaSpaces - Open Spaces

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, ServiceDetailsProvider, ApplicationContextProcessingUnitContainer

public class JettyProcessingUnitContainer
extends Object
implements JeeProcessingUnitContainer

The actual contianer 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.mortbay.jetty.webapp.WebAppContext webAppContext, org.mortbay.jetty.HandlerContainer container, JettyHolder jettyHolder)
           
 
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.
 PUServiceDetails[] getServicesDetails()
           
 
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.mortbay.jetty.webapp.WebAppContext webAppContext,
                                    org.mortbay.jetty.HandlerContainer container,
                                    JettyHolder jettyHolder)
Method Detail

getApplicationContext

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

Specified by:
getApplicationContext in interface ApplicationContextProcessingUnitContainer

getServicesDetails

public PUServiceDetails[] getServicesDetails()
Specified by:
getServicesDetails in interface ServiceDetailsProvider

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 - Open Spaces

Copyright © GigaSpaces.