Class KieRuntimeFactory


  • public class KieRuntimeFactory
    extends java.lang.Object
    Maintains a collection of Knowledge Runtimes that is bound to the given KieBase.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> T get​(java.lang.Class<T> cls)
      Returns a singleton instance of the given class (if any)
      static KieRuntimeFactory of​(KieBase kieBase)
      Creates an instance of this factory for the given KieBase
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • of

        public static KieRuntimeFactory of​(KieBase kieBase)
        Creates an instance of this factory for the given KieBase
      • get

        public <T> T get​(java.lang.Class<T> cls)
        Returns a singleton instance of the given class (if any)
        Throws:
        java.util.NoSuchElementException - if it is not possible to find a service for the given class