Class KModuleBeanFactoryPostProcessor

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.context.ApplicationContextAware
    Direct Known Subclasses:
    KModuleAnnotationPostProcessor

    @Component("kiePostProcessor")
    public class KModuleBeanFactoryPostProcessor
    extends Object
    implements org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.context.ApplicationContextAware
    • Field Detail

      • kModuleRootUrl

        protected URL kModuleRootUrl
        Root URL of the KieModule which is associated with the Spring app context. After transforming the URL to a filesystem path it is used as base dir for the KieModule. Example: "file:/some-path/target/test-classes".
      • releaseId

        protected org.kie.api.builder.ReleaseId releaseId
    • Constructor Detail

      • KModuleBeanFactoryPostProcessor

        public KModuleBeanFactoryPostProcessor()
      • KModuleBeanFactoryPostProcessor

        public KModuleBeanFactoryPostProcessor​(URL kModuleRootUrl,
                                               org.springframework.context.ApplicationContext context)
      • KModuleBeanFactoryPostProcessor

        public KModuleBeanFactoryPostProcessor​(URL kModuleRootUrl)
    • Method Detail

      • getkModuleRootUrl

        public URL getkModuleRootUrl()
      • setReleaseId

        public void setReleaseId​(org.kie.api.builder.ReleaseId releaseId)
      • postProcessBeanFactory

        public void postProcessBeanFactory​(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
                                    throws org.springframework.beans.BeansException
        Specified by:
        postProcessBeanFactory in interface org.springframework.beans.factory.config.BeanFactoryPostProcessor
        Throws:
        org.springframework.beans.BeansException
      • createKieModule

        protected org.drools.compiler.kie.builder.impl.InternalKieModule createKieModule​(org.kie.api.builder.model.KieModuleModel kieProject)
      • checkAndResolveSpringExpression

        protected String checkAndResolveSpringExpression​(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory,
                                                         org.springframework.beans.factory.config.BeanExpressionContext context,
                                                         String expression)
      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
                                   throws org.springframework.beans.BeansException
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
        Throws:
        org.springframework.beans.BeansException