Examples of stopContext()


Examples of org.apache.deltaspike.cdise.api.ContextControl.stopContext()

                    }

                    try
                    {
                        //force a clean context - TODO discuss onScopeStopped call
                        contextControl.stopContext(scopeAnnotation);

                        contextControl.startContext(scopeAnnotation);
                        this.startedScopes.add(scopeAnnotation);

                        onScopeStarted(scopeAnnotation);
View Full Code Here

Examples of org.apache.deltaspike.cdise.api.ContextControl.stopContext()

            Thread.sleep(500);
            LOG.info("current count: " + globalResultHolder.getCount());
        }
        LOG.info("completed!");

        contextControl.stopContext(ApplicationScoped.class);
        cdiContainer.shutdown();
    }
}
View Full Code Here

Examples of org.apache.deltaspike.cdise.api.ContextControl.stopContext()

        else
        {
            LOG.severe("Unexpected implementation found: " + optionalService.getClass().getName());
        }

        contextControl.stopContext(ApplicationScoped.class);
        cdiContainer.shutdown();

        //or:
        //containerControl.stopContexts();
        //cdiContainer.shutdownContainer();
View Full Code Here

Examples of org.apache.deltaspike.cdise.api.ContextControl.stopContext()

                }

                try
                {
                    //force a clean context - TODO discuss onScopeStopped call
                    contextControl.stopContext(scopeAnnotation);

                    contextControl.startContext(scopeAnnotation);
                    this.startedScopes.add(scopeAnnotation);

                    onScopeStarted(scopeAnnotation);
View Full Code Here

Examples of org.apache.deltaspike.cdise.api.ContextControl.stopContext()

    public void requestDestroyed(ServletRequestEvent servletRequestEvent)
    {
        LOG.log(Level.FINER,"Request done.");
        ContextControl contextControl = (ContextControl)servletRequestEvent.getServletRequest()
                .getAttribute(CDI_REQ_CONTEXT);
        contextControl.stopContext(RequestScoped.class);
    }

    @Override
    public void requestInitialized(ServletRequestEvent servletRequestEvent)
    {
View Full Code Here

Examples of org.jboss.modcluster.ModClusterServiceMBean.stopContext()

                    final String webHost = VIRTUAL_HOST.resolveModelAttribute(context, operation).asString();
                    final String webContext = CONTEXT.resolveModelAttribute(context, operation).asString();
                    final int waitTime = WAIT_TIME.resolveModelAttribute(context, operation).asInt();

                    try {
                        service.stopContext(webHost, webContext, waitTime, TimeUnit.SECONDS);
                    } catch (IllegalArgumentException e) {
                        throw new OperationFailedException(new ModelNode().set(ModClusterLogger.ROOT_LOGGER.contextOrHostNotFound(webHost, webContext)));
                    }

                    context.completeStep(new OperationContext.RollbackHandler() {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.