Package org.openspaces.core.context
Class GigaSpaceContextBeanPostProcessor
java.lang.Object
org.openspaces.core.context.GigaSpaceContextBeanPostProcessor
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.config.BeanPostProcessor,org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor,org.springframework.context.ApplicationContextAware
public class GigaSpaceContextBeanPostProcessor
extends Object
implements org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor, org.springframework.context.ApplicationContextAware
A Spring bean post processor allowing to use
GigaSpaceContext in order to inject GigaSpaceContext instances using annotations.- Author:
- kimchy
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected GigaSpacefindGigaSpaceByName(String gsName) booleanpostProcessAfterInstantiation(Object bean, String beanName) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.config.BeanPostProcessor
postProcessAfterInitialization, postProcessBeforeInitializationMethods inherited from interface org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor
postProcessBeforeInstantiation, postProcessProperties
-
Field Details
-
logger
protected final org.apache.commons.logging.Log logger
-
-
Constructor Details
-
GigaSpaceContextBeanPostProcessor
public GigaSpaceContextBeanPostProcessor()
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-
findGigaSpaceByName
protected GigaSpace findGigaSpaceByName(String gsName) throws org.springframework.beans.factory.NoSuchBeanDefinitionException - Throws:
org.springframework.beans.factory.NoSuchBeanDefinitionException
-
postProcessAfterInstantiation
public boolean postProcessAfterInstantiation(Object bean, String beanName) throws org.springframework.beans.BeansException - Specified by:
postProcessAfterInstantiationin interfaceorg.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor- Throws:
org.springframework.beans.BeansException
-