Class ExecutorServices

  • All Implemented Interfaces:
    org.jboss.weld.bootstrap.api.Service, org.jboss.weld.manager.api.ExecutorServices

    public final class ExecutorServices
    extends org.jboss.weld.executor.CommonForkJoinPoolExecutorServices
    A CommonForkJoinPoolExecutorServices whose wrap(Collection) method simply returns the supplied Collection of Callables unchanged.

    This class exists to work around WELD-2494, which, in turn, was working around JDK-8184335.

    See Also:
    wrap(Collection)
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.jboss.weld.manager.api.ExecutorServices

        org.jboss.weld.manager.api.ExecutorServices.TaskFactory<T extends Object>
    • Constructor Detail

      • ExecutorServices

        public ExecutorServices()
        Creates a new ExecutorServices.

        There is no reason for users to call this constructor.

    • Method Detail

      • wrap

        public <T> Collection<? extends Callable<T>> wrap​(Collection<? extends Callable<T>> tasks)
        Returns the supplied tasks argument unchanged when invoked.
        Overrides:
        wrap in class org.jboss.weld.executor.CommonForkJoinPoolExecutorServices
        Parameters:
        tasks - a Collection of Callables representing tasks that Weld needs to do; may be null
        Returns:
        the supplied tasks argument
        See Also:
        WELD-2494