Package com.hazelcast.spring.context
Class SpringManagedContext
- java.lang.Object
-
- com.hazelcast.spring.context.SpringManagedContext
-
- All Implemented Interfaces:
ManagedContext
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
public class SpringManagedContext extends java.lang.Object implements ManagedContext, org.springframework.context.ApplicationContextAware
ManagedContext
implementation for Hazelcast.
-
-
Constructor Summary
Constructors Constructor Description SpringManagedContext()
SpringManagedContext(org.springframework.context.ApplicationContext applicationContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
initialize(java.lang.Object obj)
Initialize the given object instance.void
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
-
-
Method Detail
-
initialize
public java.lang.Object initialize(java.lang.Object obj)
Description copied from interface:ManagedContext
Initialize the given object instance. This is intended for repopulating select fields and methods for deserialized instances. It is also possible to proxy the object, e.g. with AOP proxies.- Specified by:
initialize
in interfaceManagedContext
- Parameters:
obj
- Object to initialize- Returns:
- the initialized object to use
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
-