Package org.jrebirth.af.core.concurrent

Examples of org.jrebirth.af.core.concurrent.RunInto


     * @param priority the runnable priority
     */
    public AbstractBaseCommand(final RunType runType, final RunnablePriority priority) {
        super();
        // Try to retrieve the RunInto annotation at class level within class hierarchy
        final RunInto ria = ClassUtility.getLastClassAnnotation(this.getClass(), RunInto.class);

        // First try to get the annotation value
        // Secondly by provided runtType argument
        // Thirdly (default case) use JIT
        this.runIntoThread = ria == null ? runType == null ? RunType.JIT : runType : ria.value();

        // Do same job for the priority
        this.runnablePriority = ria == null ? priority == null ? RunnablePriority.Normal : priority : ria.priority();
    }
View Full Code Here


        if (customMethod == null) {
            throw new WaveException(wave);
        }

        // Grab the run type annotation (if exists)
        final RunInto runInto = customMethod.getAnnotation(RunInto.class);

        // Retrieve the annotation runnable priority (if any)
        final RunnablePriority priority = runInto == null ? RunnablePriority.Normal : runInto.priority();

        // Retrieve the annotation run type (if any)
        final RunType runType = runInto == null ? null : runInto.value();

        final JRebirthRunnable waveHandlerRunnable = buildWaveRunnable(wave, customMethod, priority);

        // If the notified class is part of the UI
        // We must perform this action into the JavaFX Application Thread
View Full Code Here

TOP

Related Classes of org.jrebirth.af.core.concurrent.RunInto

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.