Examples of onApplicationEvent()


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.data.gemfire.support.SpringContextBootstrappingInitializer.onApplicationEvent()

      assertFalse(declarable.isInitialized());
      assertFalse(doPostInitCalled.get());
      assertSame(parameters, declarable.nullSafeGetParameters());

      initializer.onApplicationEvent(new ContextRefreshedEvent(mockApplicationContext));

      assertTrue(declarable.isInitialized());
      assertTrue(doPostInitCalled.get());
      declarable.assertEquals(parameters);
      declarable.assertSame(mockBeanFactory);
View Full Code Here

Examples of org.springframework.data.gemfire.support.SpringContextBootstrappingInitializer.onApplicationEvent()

      assertFalse(declarable.isInitialized());
      assertFalse(doPostInitCalled.get());
      assertNotSame(parameters, declarable.nullSafeGetParameters());

      initializer.onApplicationEvent(new ContextRefreshedEvent(mockApplicationContext));

      assertFalse(declarable.isInitialized());
      assertFalse(doPostInitCalled.get());
    }
    finally {
View Full Code Here

Examples of org.springframework.data.gemfire.support.SpringContextBootstrappingInitializer.onApplicationEvent()

      assertFalse(declarable.isInitialized());
      assertFalse(doPostInitCalled.get());
    }
    finally {
      initializer.onApplicationEvent(new ContextClosedEvent(mockApplicationContext));
    }
  }

  protected static class TestLazyWiringDeclarableSupport extends LazyWiringDeclarableSupport {
View Full Code Here

Examples of org.springframework.security.authentication.event.LoggerListener.onApplicationEvent()

    public void testLogsEvents() {
        AuthenticationFailureDisabledEvent event = new AuthenticationFailureDisabledEvent(getAuthentication(),
                new LockedException("TEST"));
        LoggerListener listener = new LoggerListener();
        listener.onApplicationEvent(event);
        assertTrue(true);
    }
}
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.