Package org.kie.spring
Class KModuleBeanFactoryPostProcessor
- java.lang.Object
-
- org.kie.spring.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 Summary
Fields Modifier and Type Field Description protected URLkModuleRootUrlRoot URL of the KieModule which is associated with the Spring app context.protected org.kie.api.builder.ReleaseIdreleaseId
-
Constructor Summary
Constructors Constructor Description KModuleBeanFactoryPostProcessor()KModuleBeanFactoryPostProcessor(URL kModuleRootUrl)KModuleBeanFactoryPostProcessor(URL kModuleRootUrl, org.springframework.context.ApplicationContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringcheckAndResolveSpringExpression(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory, org.springframework.beans.factory.config.BeanExpressionContext context, String expression)protected org.drools.compiler.kie.builder.impl.InternalKieModulecreateKieModule(org.kie.api.builder.model.KieModuleModel kieProject)URLgetkModuleRootUrl()voidpostProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)voidsetReleaseId(org.kie.api.builder.ReleaseId releaseId)
-
-
-
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:
postProcessBeanFactoryin interfaceorg.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:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
-