Package org.arquillian.spacelift.execution

Examples of org.arquillian.spacelift.execution.ExecutionServiceFactory


    @Inject
    private Event<ExecutionServiceInitialized> executionServiceInitialized;

    public void createExecutionService(@Observes SpaceliftBootstrap event) {

        ExecutionServiceFactory factory = serviceLoader.get().onlyOne(ExecutionServiceFactory.class,
            DefaultExecutionServiceFactory.class);

        log.log(Level.FINE, "Registering ExecutionServiceFactory for Tasks creation");

        Tasks.setDefaultExecutionServiceFactory(factory);

        log.log(Level.FINE, "Retrieving ExecutionService instance from factory {0}", factory.getClass().getName());

        ExecutionService service = factory.getExecutionServiceInstance();
        executionServiceInstance.set(service);

        executionServiceInitialized.fire(new ExecutionServiceInitialized());
    }
View Full Code Here

TOP

Related Classes of org.arquillian.spacelift.execution.ExecutionServiceFactory

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.