Package org.kie.dmn.core.assembler
Class DMNAssemblerService
- java.lang.Object
-
- org.kie.dmn.core.assembler.DMNAssemblerService
-
- All Implemented Interfaces:
org.kie.api.internal.assembler.KieAssemblerService,org.kie.api.internal.utils.KieService,org.kie.api.Service
public class DMNAssemblerService extends Object implements org.kie.api.internal.assembler.KieAssemblerService
-
-
Field Summary
Fields Modifier and Type Field Description static StringDMN_COMPILER_CACHE_KEYstatic StringDMN_DECISION_LOGIC_COMPILERstatic StringDMN_PROFILE_PREFIXstatic StringDMN_PROFILES_CACHE_KEYstatic StringDMN_RUNTIME_LISTENER_PREFIXstatic 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(Object kbuilder, org.kie.api.io.Resource resource, org.kie.api.io.ResourceType type, org.kie.api.io.ResourceConfiguration configuration)voidaddResourcesAfterRules(Object kbuilder, Collection<org.kie.api.io.ResourceWithConfiguration> resources, org.kie.api.io.ResourceType type)static DMNCompilerConfigurationImplapplyDecisionLogicCompilerFactory(ClassLoader classLoader, DMNCompilerConfigurationImpl config)static DMNCompilerConfigurationImplcompilerConfigWithKModulePrefs(ClassLoader classLoader, org.kie.internal.utils.ChainedProperties chainedProperties, List<DMNProfile> dmnProfiles, DMNCompilerConfigurationImpl config)Returns a DMNCompilerConfiguration with the specified properties set, and applying the explicited dmnProfiles.static voidenrichDMNResourcesWithImportsDependencies(List<DMNResource> dmnResources, Collection<org.kie.dmn.api.core.DMNModel> dmnModels)static List<DMNProfile>getDefaultDMNProfiles(org.kie.internal.utils.ChainedProperties properties)protected List<DMNProfile>getDMNProfiles(org.drools.compiler.builder.impl.KnowledgeBuilderImpl kbuilderImpl)org.kie.api.io.ResourceTypegetResourceType()static booleanisStrictMode(org.kie.internal.utils.ChainedProperties properties)
-
-
-
Field Detail
-
ORG_KIE_DMN_PREFIX
public static final String ORG_KIE_DMN_PREFIX
- See Also:
- Constant Field Values
-
DMN_PROFILE_PREFIX
public static final String DMN_PROFILE_PREFIX
- See Also:
- Constant Field Values
-
DMN_RUNTIME_LISTENER_PREFIX
public static final String DMN_RUNTIME_LISTENER_PREFIX
- See Also:
- Constant Field Values
-
DMN_DECISION_LOGIC_COMPILER
public static final String DMN_DECISION_LOGIC_COMPILER
- See Also:
- Constant Field Values
-
DMN_COMPILER_CACHE_KEY
public static final String DMN_COMPILER_CACHE_KEY
- See Also:
- Constant Field Values
-
DMN_PROFILES_CACHE_KEY
public static final 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(Object kbuilder, Collection<org.kie.api.io.ResourceWithConfiguration> resources, org.kie.api.io.ResourceType type) throws Exception
- Specified by:
addResourcesAfterRulesin interfaceorg.kie.api.internal.assembler.KieAssemblerService- Throws:
Exception
-
enrichDMNResourcesWithImportsDependencies
public static void enrichDMNResourcesWithImportsDependencies(List<DMNResource> dmnResources, Collection<org.kie.dmn.api.core.DMNModel> dmnModels)
-
addResourceAfterRules
public void addResourceAfterRules(Object kbuilder, org.kie.api.io.Resource resource, org.kie.api.io.ResourceType type, org.kie.api.io.ResourceConfiguration configuration) throws Exception
- Specified by:
addResourceAfterRulesin interfaceorg.kie.api.internal.assembler.KieAssemblerService- Throws:
Exception
-
getDMNProfiles
protected List<DMNProfile> getDMNProfiles(org.drools.compiler.builder.impl.KnowledgeBuilderImpl kbuilderImpl)
-
getDefaultDMNProfiles
public static 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(ClassLoader classLoader, DMNCompilerConfigurationImpl config) throws Exception
- Throws:
Exception
-
compilerConfigWithKModulePrefs
public static DMNCompilerConfigurationImpl compilerConfigWithKModulePrefs(ClassLoader classLoader, org.kie.internal.utils.ChainedProperties chainedProperties, 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:
-
-