Examples of onApplicationEvent()


Examples of org.springframework.context.ApplicationListener.onApplicationEvent()

                else if (listener instanceof MuleSubscriptionEventListener)
                {
                    if (isSubscriptionMatch(muleEvent.getEndpoint(),
                        ((MuleSubscriptionEventListener) listener).getSubscriptions()))
                    {
                        listener.onApplicationEvent(muleEvent);
                    }
                }
                else if (listener instanceof MuleEventListener)
                {
                    listener.onApplicationEvent(muleEvent);
View Full Code Here

Examples of org.springframework.context.ApplicationListener.onApplicationEvent()

                        listener.onApplicationEvent(muleEvent);
                    }
                }
                else if (listener instanceof MuleEventListener)
                {
                    listener.onApplicationEvent(muleEvent);
                }
            }
            else if (listener instanceof AsynchronousEventListener
                     && !(((AsynchronousEventListener) listener).getListener() instanceof MuleEventListener))
            {
View Full Code Here

Examples of org.springframework.context.ApplicationListener.onApplicationEvent()

                }
            }
            else if (listener instanceof AsynchronousEventListener
                     && !(((AsynchronousEventListener) listener).getListener() instanceof MuleEventListener))
            {
                listener.onApplicationEvent(e);
            }
            else if (!(listener instanceof MuleEventListener))
            {
                listener.onApplicationEvent(e);
            }
View Full Code Here

Examples of org.springframework.context.ApplicationListener.onApplicationEvent()

            {
                listener.onApplicationEvent(e);
            }
            else if (!(listener instanceof MuleEventListener))
            {
                listener.onApplicationEvent(e);
            }
            else
            {
                // Finally only propagate the Application event if the
                // ApplicationEvent interface is explicitly implemented
View Full Code Here

Examples of org.springframework.context.ApplicationListener.onApplicationEvent()

                // ApplicationEvent interface is explicitly implemented
                for (int i = 0; i < listener.getClass().getInterfaces().length; i++)
                {
                    if (listener.getClass().getInterfaces()[i].equals(ApplicationListener.class))
                    {
                        listener.onApplicationEvent(e);
                        break;
                    }
                }

            }
View Full Code Here

Examples of org.springframework.context.ApplicationListener.onApplicationEvent()

  public void multicastEvent(final ApplicationEvent event) {
    for (Iterator it = getApplicationListeners().iterator(); it.hasNext();) {
      final ApplicationListener listener = (ApplicationListener) it.next();
      getTaskExecutor().execute(new Runnable() {
        public void run() {
          listener.onApplicationEvent(event);
        }
      });
    }
  }
View Full Code Here

Examples of org.springframework.context.ApplicationListener.onApplicationEvent()

  public void multicastEvent(final ApplicationEvent event) {
    for (Iterator it = getApplicationListeners().iterator(); it.hasNext();) {
      final ApplicationListener listener = (ApplicationListener) it.next();
      getTaskExecutor().execute(new Runnable() {
        public void run() {
          listener.onApplicationEvent(event);
        }
      });
    }
  }
View Full Code Here

Examples of org.springframework.context.ApplicationListener.onApplicationEvent()

  public void testSimpleApplicationEventMulticaster() {
    MockControl ctrl = MockControl.createControl(ApplicationListener.class);
    ApplicationListener listener = (ApplicationListener) ctrl.getMock();

    ApplicationEvent evt = new ContextClosedEvent(new StaticApplicationContext());
    listener.onApplicationEvent(evt);
    ctrl.setMatcher(new EqualsMatcher());

    SimpleApplicationEventMulticaster smc = new SimpleApplicationEventMulticaster();
    smc.addApplicationListener(listener);
View Full Code Here

Examples of org.springframework.context.ApplicationListener.onApplicationEvent()

                else if (listener instanceof MuleSubscriptionEventListener)
                {
                    if (isSubscriptionMatch(muleEvent.getEndpoint(),
                        ((MuleSubscriptionEventListener) listener).getSubscriptions()))
                    {
                        listener.onApplicationEvent(muleEvent);
                    }
                }
                else if (listener instanceof MuleEventListener)
                {
                    listener.onApplicationEvent(muleEvent);
View Full Code Here

Examples of org.springframework.context.ApplicationListener.onApplicationEvent()

                        listener.onApplicationEvent(muleEvent);
                    }
                }
                else if (listener instanceof MuleEventListener)
                {
                    listener.onApplicationEvent(muleEvent);
                }
            }
            else if (listener instanceof AsynchronousEventListener
                     && !(((AsynchronousEventListener) listener).getListener() instanceof MuleEventListener))
            {
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.