|
GigaSpaces XAP 7.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openspaces.core.properties.BeanLevelPropertyBeanPostProcessor
public class BeanLevelPropertyBeanPostProcessor
A Spring BeanPostProcessor
that process beans that implement
BeanLevelPropertiesAware
or BeanLevelMergedPropertiesAware
based on the provided
BeanLevelProperties
.
In addition, beans that contain a field that has the annotation BeanLevelPropertiesContext
will be injected with the BeanLevelProperties
. Beans that contain a field that has the
annotation BeanLevelMergedPropertiesContext
will be injected with the merged Properties
based on the provided beanName.
BeanLevelProperties
,
BeanLevelMergedPropertiesAware
,
BeanLevelPropertiesAware
Constructor Summary | |
---|---|
BeanLevelPropertyBeanPostProcessor(BeanLevelProperties beanLevelProperties)
Constructs a new bean level bean post processor based on the provided bean level properties. |
Method Summary | |
---|---|
Object |
postProcessAfterInitialization(Object bean,
String beanName)
A no op, just returned the bean itself. |
Object |
postProcessBeforeInitialization(Object bean,
String beanName)
Post process a given bean. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BeanLevelPropertyBeanPostProcessor(BeanLevelProperties beanLevelProperties)
beanLevelProperties
- The bean level properties to be used for injectionMethod Detail |
---|
public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException
BeanLevelPropertiesAware
of if it
contains a field that has the annotation BeanLevelPropertiesContext
the provided
BeanLevelProperties
will be injected to it. If the bean implements
BeanLevelMergedPropertiesAware
of if it contains a field that has the annotation
BeanLevelMergedPropertiesContext
then the merged properties based on the provided
beanName will be injected (using BeanLevelProperties.getMergedBeanProperties(String)
).
postProcessBeforeInitialization
in interface BeanPostProcessor
bean
- The bean to possibly perform injection of BeanLevelProperties
beanName
- The bean name
BeansException
public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException
postProcessAfterInitialization
in interface BeanPostProcessor
BeansException
|
GigaSpaces XAP 7.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |