Class PMMLImplementationsUtil


  • public class PMMLImplementationsUtil
    extends Object
    Class used to provide utility methods to manage implementation to be invoked at runtime
    • Constructor Detail

      • PMMLImplementationsUtil

        public PMMLImplementationsUtil()
    • Method Detail

      • toEnable

        public static org.kie.api.pmml.PMMLConstants toEnable​(ClassLoader classLoader)
        Parameters:
        classLoader -
        Returns:
        the PMML implementation to enable
      • getPMMLConstants

        protected static org.kie.api.pmml.PMMLConstants getPMMLConstants​(boolean isLegacyPresent,
                                                                         boolean isTrustyPresent)
      • getFromPropertyAndClasspath

        protected static org.kie.api.pmml.PMMLConstants getFromPropertyAndClasspath​(org.kie.api.pmml.PMMLConstants pmmlConstants,
                                                                                    boolean isLegacyPresent,
                                                                                    boolean isTrustyPresent)
      • getFromClassPath

        protected static org.kie.api.pmml.PMMLConstants getFromClassPath​(boolean isLegacyPresent,
                                                                         boolean isTrustyPresent)
      • returnImplementation

        protected static org.kie.api.pmml.PMMLConstants returnImplementation​(org.kie.api.pmml.PMMLConstants toReturn,
                                                                             boolean isPresent)
      • isjPMMLAvailableToClassLoader

        public static boolean isjPMMLAvailableToClassLoader​(ClassLoader classLoader)
        Parameters:
        classLoader -
        Returns:
        true if org.kie.dmn.jpmml.DMNjPMMLInvocationEvaluator is found in the given ClassLoader, false otherwise