|
GigaSpaces - Open Spaces | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openspaces.core.properties.BeanLevelPropertyBeanPostProcessor
public class BeanLevelPropertyBeanPostProcessor
A Spring BeanPostProcessor
that process beans that implement
BeanLevelPropertiesAware
or BeanLevelMergedPropertiesAware
based on the provided
BeanLevelProperties
.
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
the
provided BeanLevelProperties
will be injected to it. If the bean implements
BeanLevelMergedPropertiesAware
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 - Open Spaces | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |