Package org.jboss.arquillian.warp.impl.client.context.operation

Examples of org.jboss.arquillian.warp.impl.client.context.operation.OperationalContext


            eventBusTimer = null;
        }
    }

    private ContextualOperation<Command, Void> operationForExecutingEventRemotelyOnCurrentContext() {
        OperationalContext context = operationalContexts.get().test();

        return Contextualizer.contextualize(context, new ContextualOperation<Command, Void>() {
            public Void performInContext(Command command) {
                injector.get().inject(command);
                command.perform();
View Full Code Here


            eventBusTimer = null;
        }
    }

    private ContextualOperation<Command, Void> operationForExecutingEventRemotelyOnCurrentContext() {
        OperationalContext context = operationalContexts.get().test();

        return Contextualizer.contextualize(context, new ContextualOperation<Command, Void>() {
            public Void performInContext(Command command) {
                injector.get().inject(command);
                command.perform();
View Full Code Here

        }
        urls.add(proxyUrl);
    }

    public OperationalContext get(URL proxyUrl) {
        OperationalContext operationalContext = urlToContext.get(proxyUrl);
        if (operationalContext == null) {
            throw new OperationalContextNotBoundException("The OperationalContext wasn't setup for this URL: " + proxyUrl);
        }
        return operationalContext;
    }
View Full Code Here

    public void initializeMapping(@Observes ManagerStarted event) {
        mapping.set(new ProxyURLToContextMapping());
    }

    public void registerOperationalContextToUrl(@Observes RequireProxy requireProxy) {
        OperationalContext context = contexts.get().test();
        mapping.get().register(requireProxy.getProxyUrl(), testClass.get().getJavaClass(), context);
    }
View Full Code Here

        }
        urls.add(proxyUrl);
    }

    public OperationalContext get(URL proxyUrl) {
        OperationalContext operationalContext = urlToContext.get(proxyUrl);
        if (operationalContext == null) {
            throw new OperationalContextNotBoundException("The OperationalContext wasn't setup for this URL: " + proxyUrl);
        }
        return operationalContext;
    }
View Full Code Here

        realUrlMapping.set(new RealURLToProxyURLMapping());
    }

    public void registerOperationalContextToUrl(@Observes RequireProxy event) {
        if (!contextMapping.get().isRegistered(event.getProxyUrl())) {
            OperationalContext context = contexts.get().test();
            contextMapping.get().register(event.getProxyUrl(), testClass.get().getJavaClass(), context);
        }

        if (!realUrlMapping.get().isRegistered(event.getRealUrl())) {
            realUrlMapping.get().register(event.getRealUrl(), event.getProxyUrl());
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.warp.impl.client.context.operation.OperationalContext

Copyright © 2018 www.massapicom. 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.