Package com.oracle.coherence.spring
Class CoherenceContext
java.lang.Object
com.oracle.coherence.spring.CoherenceContext
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 Summary
ConstructorsConstructorDescriptionCoherenceContext(org.springframework.context.ApplicationContext ctx) Create aCoherenceContext. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.springframework.context.ApplicationContextReturns theApplicationContext.static voidsetApplicationContext(org.springframework.context.ApplicationContext ctx) Set the globalApplicationContext.
-
Constructor Details
-
CoherenceContext
@Inject public CoherenceContext(org.springframework.context.ApplicationContext ctx) Create aCoherenceContext.- Parameters:
ctx- theApplicationContext
-
-
Method Details
-
getApplicationContext
public static org.springframework.context.ApplicationContext getApplicationContext()Returns theApplicationContext.- Returns:
- the
ApplicationContext
-
setApplicationContext
public static void setApplicationContext(org.springframework.context.ApplicationContext ctx) Set the globalApplicationContext.- Parameters:
ctx- theApplicationContextto be used by Coherence classes
-