Package org.jboss.seam.cron.api.queue

Examples of org.jboss.seam.cron.api.queue.Queue


            final Set<ProcessObserverMethod> allObservers) {
        try {
            for (ProcessObserverMethod pom : allObservers) {
                ObserverMethod<?> obsMeth = pom.getObserverMethod();
                AnnotatedMethod<?> annMeth = pom.getAnnotatedMethod();
                Queue queueQualifier = null;
                AsyncRestriction restrictQualifier = null;

                for (Object bindingObj : obsMeth.getObservedQualifiers()) {
                    final Annotation originalQualifier = (Annotation) bindingObj;

                    AsyncRestriction restrictQualifier0 = (AsyncRestriction) CdiUtils.getQualifier(originalQualifier, AsyncRestriction.class);
                    if (restrictQualifier0 != null && restrictQualifier == null)
                        restrictQualifier = restrictQualifier0;

                    Queue queueQualifier0 = (Queue) CdiUtils.getQualifier(originalQualifier, Queue.class);
                    if (queueQualifier0 != null && queueQualifier == null)
                        queueQualifier = queueQualifier0;
                }

                if (queueQualifier != null && restrictQualifier != null) {
View Full Code Here


                if (log.isTraceEnabled()) {
                    log.trace("Intercepting method invocation of " + ctx.getMethod().getName() + " to make it @Asynchronous");
                }

                Queue queue = ctx.getMethod().getAnnotation(Queue.class);
                String queueId = queue == null ? null : queue.value();

                final Invoker ice = iceCopies.get();
                ice.setInvocationContext(ctx);
                final CronAsynchronousProvider asyncStrategy = cronExtension.getAsynchronousProvider();
View Full Code Here

                ObserverMethod<?> obsMeth = pom.getObserverMethod();

                String queueId = null;
                for (Object bindingObj : obsMeth.getObservedQualifiers()) {
                    final Annotation orginalQualifier = (Annotation) bindingObj;
                    final Queue queue = (Queue) CdiUtils.getQualifier(orginalQualifier, Queue.class);
                    if (queue != null) {
                        queueId = queue.value();
                        break;
                    }
                }

                for (Object bindingObj : obsMeth.getObservedQualifiers()) {
View Full Code Here

TOP

Related Classes of org.jboss.seam.cron.api.queue.Queue

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.