Class JpaPackageDataRouteSupplierBeanRegistrar

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.context.annotation.ImportBeanDefinitionRegistrar, org.springframework.context.EnvironmentAware

    public class JpaPackageDataRouteSupplierBeanRegistrar
    extends Object
    implements org.springframework.context.annotation.ImportBeanDefinitionRegistrar, org.springframework.context.EnvironmentAware
    Registers a bean factory who in turn generates a supplier component that is responsible for supplying a RoutableDataSource based on a package fragment. This is useful during a variety of scenarios where it is interesting to identify a route proxy based on a package.
    Author:
    Jeff Fischer
    See Also:
    DataRouteReference, DataRouteByExample
    • Constructor Detail

      • JpaPackageDataRouteSupplierBeanRegistrar

        public JpaPackageDataRouteSupplierBeanRegistrar()
    • Method Detail

      • setEnvironment

        public void setEnvironment​(org.springframework.core.env.Environment environment)
        Specified by:
        setEnvironment in interface org.springframework.context.EnvironmentAware
      • registerBeanDefinitions

        public void registerBeanDefinitions​(org.springframework.core.type.AnnotationMetadata importingClassMetadata,
                                            org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
        Specified by:
        registerBeanDefinitions in interface org.springframework.context.annotation.ImportBeanDefinitionRegistrar