Class TenantEntityStoreBeanPostProcessor
java.lang.Object
org.chenile.workflow.service.store.TenantEntityStoreBeanPostProcessor
- All Implemented Interfaces:
Aware, BeanFactoryAware, BeanPostProcessor
public class TenantEntityStoreBeanPostProcessor
extends Object
implements BeanPostProcessor, BeanFactoryAware
Makes every Spring-managed
EntityStore tenant-aware without requiring changes to
the workflow module that injects the base store. For a base bean named
vehicleEntityStore, tenant tenant0 resolves a bean named
tenant0VehicleEntityStore. When that bean is absent, the original store is used.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionpostProcessAfterInitialization(Object bean, String beanName) voidsetBeanFactory(BeanFactory beanFactory) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BeanPostProcessor
postProcessBeforeInitialization
-
Field Details
-
beanFactory
-
-
Constructor Details
-
TenantEntityStoreBeanPostProcessor
public TenantEntityStoreBeanPostProcessor()
-
-
Method Details
-
setBeanFactory
- Specified by:
setBeanFactoryin interfaceBeanFactoryAware- Throws:
BeansException
-
postProcessAfterInitialization
- Specified by:
postProcessAfterInitializationin interfaceBeanPostProcessor
-
CHENILE