Package com.oracle.coherence.spring
Class CoherenceContext
- java.lang.Object
 - 
- com.oracle.coherence.spring.CoherenceContext
 
 
- 
@Component public class CoherenceContext extends java.lang.Object
A utility class to capture theApplicationContextso that it is available to Coherence classes that are not managed by Spring.- Since:
 - 3.0
 - Author:
 - Ryan Lubke
 
 
- 
- 
Constructor Summary
Constructors Constructor Description CoherenceContext(ApplicationContext ctx)Create aCoherenceContext. 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ApplicationContextgetApplicationContext()Returns theApplicationContext.static voidsetApplicationContext(ApplicationContext ctx)Set the globalApplicationContext. 
 - 
 
- 
- 
Constructor Detail
- 
CoherenceContext
@Inject public CoherenceContext(ApplicationContext ctx)
Create aCoherenceContext.- Parameters:
 ctx- theApplicationContext
 
 - 
 
- 
Method Detail
- 
getApplicationContext
public static ApplicationContext getApplicationContext()
Returns theApplicationContext.- Returns:
 - the 
ApplicationContext 
 
- 
setApplicationContext
public static void setApplicationContext(ApplicationContext ctx)
Set the globalApplicationContext.- Parameters:
 ctx- theApplicationContextto be used by Coherence classes
 
 - 
 
 -