@groovy.transform.CompileStatic class PersistenceContextInterceptorAggregator extends java.lang.Object implements org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor, Ordered
BeanDefinitionRegistryPostProcessor that replaces multiple discovered PersistenceContextInterceptor beans with a single aggregating instance. The previous multiple PersistenceContextInterceptor beans will be removed from the context and re-added as inner beans of the new AggregatePersistenceContextInterceptor bean. PersistenceContextInterceptor beans are discovered by the bean name. The default pattern used for matching the beans is ^.*[pP]ersistenceInterceptor$
Modifiers | Name | Description |
---|---|---|
private java.lang.Class |
aggregatorBeanClass |
|
private java.lang.String |
aggregatorBeanName |
|
private int |
order |
|
private java.util.regex.Pattern |
persistenceInterceptorBeanNamePattern |
Type | Name and description |
---|---|
java.lang.Class |
aggregatorBeanClass |
java.lang.String |
aggregatorBeanName |
int |
order |
java.util.regex.Pattern |
persistenceInterceptorBeanNamePattern |
Constructor and description |
---|
PersistenceContextInterceptorAggregator
() |
Type Params | Return Type | Name and description |
---|---|---|
|
protected org.springframework.beans.factory.config.BeanDefinition |
createAggregateBeanDefinition(org.springframework.beans.factory.support.ManagedList interceptorBeans) |
|
protected java.lang.Object |
createAggregatePersistenceContextInterceptorOnDemand(org.springframework.beans.factory.support.BeanDefinitionRegistry registry) |
|
protected java.util.Collection<java.lang.String> |
findPersistenceInterceptorBeanNames(org.springframework.beans.factory.support.BeanDefinitionRegistry registry) |
|
protected org.springframework.beans.factory.support.ManagedList |
moveInterceptorBeansToManagedList(org.springframework.beans.factory.support.BeanDefinitionRegistry registry, java.util.Collection<java.lang.String> persistenceInterceptorBeanNames) |
|
void |
postProcessBeanDefinitionRegistry(org.springframework.beans.factory.support.BeanDefinitionRegistry registry) |
|
void |
postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Groovy Documentation