Class CoherenceContext

java.lang.Object
com.oracle.coherence.spring.CoherenceContext

@Component public class CoherenceContext extends Object
A utility class to capture the ApplicationContext so that it is available to Coherence classes that are not managed by Spring.
Since:
3.0
Author:
Ryan Lubke
  • Constructor Details

    • CoherenceContext

      @Inject public CoherenceContext(org.springframework.context.ApplicationContext ctx)
      Parameters:
      ctx - the ApplicationContext
  • Method Details

    • getApplicationContext

      public static org.springframework.context.ApplicationContext getApplicationContext()
      Returns the ApplicationContext.
      Returns:
      the ApplicationContext
    • setApplicationContext

      public static void setApplicationContext(org.springframework.context.ApplicationContext ctx)
      Set the global ApplicationContext.
      Parameters:
      ctx - the ApplicationContext to be used by Coherence classes