MotechOsgiConfigurableApplicationContext

public class MotechOsgiConfigurableApplicationContext extends OsgiBundleXmlApplicationContext implements ConfigurableWebApplicationContext

This is the context class, which will be used by the extender for creating application contexts.

Constructors

MotechOsgiConfigurableApplicationContext

public MotechOsgiConfigurableApplicationContext(String[] configurationLocations)

Constructs the new context using the provided configuration locations.

Parameters:
  • configurationLocations – the configuration location (Spring xml configuration files)

Methods

getNamespace

public String getNamespace()

getServletConfig

public ServletConfig getServletConfig()

getServletContext

public ServletContext getServletContext()

setConfigLocation

public void setConfigLocation(String configLocation)

setNamespace

public void setNamespace(String namespace)

setServletConfig

public void setServletConfig(ServletConfig servletConfig)

setServletContext

public void setServletContext(ServletContext servletContext)

waitForContext

public void waitForContext(int waitTimeInMillis)

Utility for waiting until the context is ready, which is signalled by firing the org.springframework.context.event.ContextRefreshedEvent.

Parameters:
  • waitTimeInMillis – the max wait in milliseconds