GigaSpaces XAP 9.7.2 API

org.openspaces.core.context
Class GigaSpaceContextBeanPostProcessor

java.lang.Object
  extended by org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessorAdapter
      extended by org.openspaces.core.context.GigaSpaceContextBeanPostProcessor
All Implemented Interfaces:
Aware, BeanPostProcessor, InstantiationAwareBeanPostProcessor, SmartInstantiationAwareBeanPostProcessor, ApplicationContextAware

public class GigaSpaceContextBeanPostProcessor
extends InstantiationAwareBeanPostProcessorAdapter
implements ApplicationContextAware

A Spring bean post processor allowing to use GigaSpaceContext in order to inject GigaSpaceContext instances using annotations.

Author:
kimchy
See Also:
GigaSpaceContext, GigaSpace

Field Summary
protected  Log logger
           
 
Constructor Summary
GigaSpaceContextBeanPostProcessor()
           
 
Method Summary
protected  GigaSpace findGigaSpaceByName(String gsName)
           
 boolean postProcessAfterInstantiation(Object bean, String beanName)
           
 void setApplicationContext(ApplicationContext applicationContext)
           
 
Methods inherited from class org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessorAdapter
determineCandidateConstructors, getEarlyBeanReference, postProcessAfterInitialization, postProcessBeforeInitialization, postProcessBeforeInstantiation, postProcessPropertyValues, predictBeanType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final Log logger
Constructor Detail

GigaSpaceContextBeanPostProcessor

public GigaSpaceContextBeanPostProcessor()
Method Detail

setApplicationContext

public void setApplicationContext(ApplicationContext applicationContext)
Specified by:
setApplicationContext in interface ApplicationContextAware

findGigaSpaceByName

protected GigaSpace findGigaSpaceByName(String gsName)
                                 throws NoSuchBeanDefinitionException
Throws:
NoSuchBeanDefinitionException

postProcessAfterInstantiation

public boolean postProcessAfterInstantiation(Object bean,
                                             String beanName)
                                      throws BeansException
Specified by:
postProcessAfterInstantiation in interface InstantiationAwareBeanPostProcessor
Overrides:
postProcessAfterInstantiation in class InstantiationAwareBeanPostProcessorAdapter
Throws:
BeansException

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.