Examples of TimedObjectInvoker


Examples of org.jboss.ejb3.timerservice.spi.TimedObjectInvoker

    @Override
    public synchronized void start(final StartContext context) throws StartException {
        final TimerServiceFactory timerServiceFactory = timerServiceFactoryInjectedValue.getValue();

        final EJBComponent component = ejbComponentInjectedValue.getValue();
        final TimedObjectInvoker invoker;
        if(component instanceof SingletonComponent) {
            invoker = new SingletonTimedObjectInvokerImpl((SingletonComponent) component, classLoader);
        } else if(component instanceof StatelessSessionComponent) {
            invoker = new StatelessTimedObjectInvokerImpl((StatelessSessionComponent) component, classLoader);
        } else {
View Full Code Here

Examples of org.jboss.ejb3.timerservice.spi.TimedObjectInvoker

            calendarTimer.scheduleTimeout();
        }

        // finally invoke the timeout method through the invoker
        if (calendarTimer.isAutoTimer()) {
            TimedObjectInvoker invoker = this.timerService.getInvoker();
            if (!(invoker instanceof MultiTimeoutMethodTimedObjectInvoker)) {
                String msg = "Cannot invoke timeout method because timer: " + calendarTimer
                        + " is an auto timer, but invoker is not of type" + MultiTimeoutMethodTimedObjectInvoker.class;
                logger.error(msg);
                throw new RuntimeException(msg);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.