Package com.oracle.coherence.spring
Class CoherenceContext
- java.lang.Object
-
- com.oracle.coherence.spring.CoherenceContext
-
@Component public class CoherenceContext extends Object
A utility class to capture theApplicationContext
so 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 ApplicationContext
getApplicationContext()
Returns theApplicationContext
.static void
setApplicationContext(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
- theApplicationContext
to be used by Coherence classes
-
-