Example usage for org.springframework.data.gemfire.support SpringContextBootstrappingInitializer contextRefreshedEvent

List of usage examples for org.springframework.data.gemfire.support SpringContextBootstrappingInitializer contextRefreshedEvent

Introduction

In this page you can find the example usage for org.springframework.data.gemfire.support SpringContextBootstrappingInitializer contextRefreshedEvent.

Prototype

ContextRefreshedEvent contextRefreshedEvent

To view the source code for org.springframework.data.gemfire.support SpringContextBootstrappingInitializer contextRefreshedEvent.

Click Source Link

Usage

From source file:org.springframework.data.gemfire.support.SpringContextBootstrappingInitializerTest.java

@After
public void tearDown() {
    SpringContextBootstrappingInitializer.applicationContext = null;
    SpringContextBootstrappingInitializer.contextRefreshedEvent = null;
    SpringContextBootstrappingInitializer.setBeanClassLoader(null);
    SpringContextBootstrappingInitializer.unregister(TestAppConfigOne.class);
    SpringContextBootstrappingInitializer.unregister(TestAppConfigTwo.class);
}

From source file:org.springframework.data.gemfire.support.SpringContextBootstrappingInitializerTest.java

@Test
public void testNotifyOnExistingContextRefreshedEventBeforeApplicationContextExists() {
    assertNull(SpringContextBootstrappingInitializer.contextRefreshedEvent);

    TestApplicationListener testApplicationListener = new TestApplicationListener(
            "testNotifyOnExistingContextRefreshedEventBeforeApplicationContextExists");

    try {//from  www.  j a v a 2s  . co m
        testApplicationListener = SpringContextBootstrappingInitializer.register(testApplicationListener);
        assertUnnotified(testApplicationListener);
    } finally {
        SpringContextBootstrappingInitializer.unregister(testApplicationListener);
    }
}