if (!cwac.isActive()) {
@Override protected void customizeContext(ServletContext sc, ConfigurableWebApplicationContext wac) { assertNotNull("The ServletContext should not be null.", sc); assertEquals("Verifying that we received the expected ServletContext.", sc, sc); assertFalse("The ApplicationContext should not yet have been refreshed.", wac.isActive()); buffer.append(expectedContents); } };
if (!cwac.isActive()) {
if (wac instanceof ConfigurableWebApplicationContext) { ConfigurableWebApplicationContext cwac = (ConfigurableWebApplicationContext) wac; if (!cwac.isActive()) {
if (wac instanceof ConfigurableWebApplicationContext) { ConfigurableWebApplicationContext cwac = (ConfigurableWebApplicationContext) wac; if (!cwac.isActive()) {
@Override public synchronized boolean isActive() { return this.appContext.isActive(); }
public void register(Class<?> requiredType, Class<?> componentType) { if (parentContext.isActive() && "VRaptor".equals(parentContext.getId())) { logger.info("registering class {} to {} after container initialization. Please avoid this", requiredType, componentType); new SpringRegistry(parentContext.getBeanFactory(), this).register(componentType); } else { toRegister.add(componentType); } }
if (!cwac.isActive()) {
if (!cwac.isActive()) {
appctx.refresh(); if (log.isDebugEnabled()) { log.debug("Red5 app is active: {} running: {}", appctx.isActive(), appctx.isRunning());
appCtx.stop(); if (appCtx.isActive()) { log.debug("Context is active, attempting to close"); appCtx.close();
if (wac instanceof ConfigurableWebApplicationContext) { ConfigurableWebApplicationContext cwac = (ConfigurableWebApplicationContext) wac; if (!cwac.isActive()) {