Class EntityScanningDataRouteReferenceBeanPostProcessor
- java.lang.Object
-
- com.broadleafcommerce.common.jpa.data.EntityScanningDataRouteReferenceBeanPostProcessor
-
- All Implemented Interfaces:
org.springframework.beans.factory.config.BeanPostProcessor
public class EntityScanningDataRouteReferenceBeanPostProcessor extends Object implements org.springframework.beans.factory.config.BeanPostProcessor
BeanPostProcessor responsible for detectingJpaEntityScanannotation declarations containing one or morebasePackagesthat do not already belong to a root package defined inJpaDataRoute.routePackage(). If found, theJpaEntityScan.routePackage()will be used to try to match to an availableJpaDataRoute. If a match is found, a newPackageDataRouteSupplieris registered withDataRouteReferenceto handle the non-standard basePackage. This registration facilitates future calls toDataRouteReference.findRouteByExample(String)when passing the non-standard basePackage.
-
-
Constructor Summary
Constructors Constructor Description EntityScanningDataRouteReferenceBeanPostProcessor(List<JpaEntityScanBean> scans)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectpostProcessAfterInitialization(Object bean, String beanName)
-
-
-
Constructor Detail
-
EntityScanningDataRouteReferenceBeanPostProcessor
public EntityScanningDataRouteReferenceBeanPostProcessor(List<JpaEntityScanBean> scans)
-
-
Method Detail
-
postProcessAfterInitialization
public Object postProcessAfterInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
- Specified by:
postProcessAfterInitializationin interfaceorg.springframework.beans.factory.config.BeanPostProcessor- Throws:
org.springframework.beans.BeansException
-
-