Package org.kie.dmn.core.assembler
Class DMNAssemblerService
- java.lang.Object
-
- org.kie.dmn.core.assembler.DMNAssemblerService
-
- All Implemented Interfaces:
java.lang.Comparable<org.kie.api.internal.utils.KieService>,org.kie.api.internal.assembler.KieAssemblerService,org.kie.api.internal.utils.KieService
public class DMNAssemblerService extends java.lang.Object implements org.kie.api.internal.assembler.KieAssemblerService
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDMN_COMPILER_CACHE_KEYstatic java.lang.StringDMN_DECISION_LOGIC_COMPILERstatic java.lang.StringDMN_PROFILE_PREFIXstatic java.lang.StringDMN_PROFILES_CACHE_KEYstatic java.lang.StringDMN_RUNTIME_LISTENER_PREFIXstatic java.lang.StringORG_KIE_DMN_PREFIX
-
Constructor Summary
Constructors Constructor Description DMNAssemblerService()DMNAssemblerService(DMNCompilerConfigurationImpl externalCompilerConfiguration)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddResourceAfterRules(java.lang.Object kbuilder, org.kie.api.io.Resource resource, org.kie.api.io.ResourceType type, org.kie.api.io.ResourceConfiguration configuration)voidaddResourcesAfterRules(java.lang.Object kbuilder, java.util.Collection<org.kie.api.io.ResourceWithConfiguration> resources, org.kie.api.io.ResourceType type)static DMNCompilerConfigurationImplapplyDecisionLogicCompilerFactory(java.lang.ClassLoader classLoader, DMNCompilerConfigurationImpl config)static DMNCompilerConfigurationImplcompilerConfigWithKModulePrefs(java.lang.ClassLoader classLoader, org.kie.internal.utils.ChainedProperties chainedProperties, java.util.List<DMNProfile> dmnProfiles, DMNCompilerConfigurationImpl config)Returns a DMNCompilerConfiguration with the specified properties set, and applying the explicited dmnProfiles.static voidenrichDMNResourcesWithImportsDependencies(java.util.List<DMNResource> dmnResources, java.util.Collection<org.kie.dmn.api.core.DMNModel> dmnModels)static java.util.List<DMNProfile>getDefaultDMNProfiles(org.kie.internal.utils.ChainedProperties properties)protected java.util.List<DMNProfile>getDMNProfiles(org.drools.compiler.builder.impl.KnowledgeBuilderImpl kbuilderImpl)org.kie.api.io.ResourceTypegetResourceType()static booleanisStrictMode(org.kie.internal.utils.ChainedProperties properties)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Field Detail
-
ORG_KIE_DMN_PREFIX
public static final java.lang.String ORG_KIE_DMN_PREFIX
- See Also:
- Constant Field Values
-
DMN_PROFILE_PREFIX
public static final java.lang.String DMN_PROFILE_PREFIX
- See Also:
- Constant Field Values
-
DMN_RUNTIME_LISTENER_PREFIX
public static final java.lang.String DMN_RUNTIME_LISTENER_PREFIX
- See Also:
- Constant Field Values
-
DMN_DECISION_LOGIC_COMPILER
public static final java.lang.String DMN_DECISION_LOGIC_COMPILER
- See Also:
- Constant Field Values
-
DMN_COMPILER_CACHE_KEY
public static final java.lang.String DMN_COMPILER_CACHE_KEY
- See Also:
- Constant Field Values
-
DMN_PROFILES_CACHE_KEY
public static final java.lang.String DMN_PROFILES_CACHE_KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DMNAssemblerService
public DMNAssemblerService(DMNCompilerConfigurationImpl externalCompilerConfiguration)
-
DMNAssemblerService
public DMNAssemblerService()
-
-
Method Detail
-
getResourceType
public org.kie.api.io.ResourceType getResourceType()
- Specified by:
getResourceTypein interfaceorg.kie.api.internal.assembler.KieAssemblerService
-
addResourcesAfterRules
public void addResourcesAfterRules(java.lang.Object kbuilder, java.util.Collection<org.kie.api.io.ResourceWithConfiguration> resources, org.kie.api.io.ResourceType type) throws java.lang.Exception- Specified by:
addResourcesAfterRulesin interfaceorg.kie.api.internal.assembler.KieAssemblerService- Throws:
java.lang.Exception
-
enrichDMNResourcesWithImportsDependencies
public static void enrichDMNResourcesWithImportsDependencies(java.util.List<DMNResource> dmnResources, java.util.Collection<org.kie.dmn.api.core.DMNModel> dmnModels)
-
addResourceAfterRules
public void addResourceAfterRules(java.lang.Object kbuilder, org.kie.api.io.Resource resource, org.kie.api.io.ResourceType type, org.kie.api.io.ResourceConfiguration configuration) throws java.lang.Exception- Specified by:
addResourceAfterRulesin interfaceorg.kie.api.internal.assembler.KieAssemblerService- Throws:
java.lang.Exception
-
getDMNProfiles
protected java.util.List<DMNProfile> getDMNProfiles(org.drools.compiler.builder.impl.KnowledgeBuilderImpl kbuilderImpl)
-
getDefaultDMNProfiles
public static java.util.List<DMNProfile> getDefaultDMNProfiles(org.kie.internal.utils.ChainedProperties properties)
-
isStrictMode
public static boolean isStrictMode(org.kie.internal.utils.ChainedProperties properties)
-
applyDecisionLogicCompilerFactory
public static DMNCompilerConfigurationImpl applyDecisionLogicCompilerFactory(java.lang.ClassLoader classLoader, DMNCompilerConfigurationImpl config) throws java.lang.Exception
- Throws:
java.lang.Exception
-
compilerConfigWithKModulePrefs
public static DMNCompilerConfigurationImpl compilerConfigWithKModulePrefs(java.lang.ClassLoader classLoader, org.kie.internal.utils.ChainedProperties chainedProperties, java.util.List<DMNProfile> dmnProfiles, DMNCompilerConfigurationImpl config)
Returns a DMNCompilerConfiguration with the specified properties set, and applying the explicited dmnProfiles.- Parameters:
classLoader-chainedProperties- applies properties --it does not do any classloading nor profile loading based on these properites, just passes the values.dmnProfiles- applies these DMNProfile(s) to the DMNCompilerConfigurationconfig-- Returns:
-
-