Class KieServicesImpl

    • Constructor Detail

      • KieServicesImpl

        public KieServicesImpl()
    • Method Detail

      • getRepository

        public org.kie.api.builder.KieRepository getRepository()
        Specified by:
        getRepository in interface org.kie.api.KieServices
      • getKieClasspathContainer

        public org.kie.api.runtime.KieContainer getKieClasspathContainer()
        Returns KieContainer for the classpath
        Specified by:
        getKieClasspathContainer in interface org.kie.api.KieServices
      • getKieClasspathContainer

        public org.kie.api.runtime.KieContainer getKieClasspathContainer​(ClassLoader classLoader)
        Specified by:
        getKieClasspathContainer in interface org.kie.api.KieServices
      • getKieClasspathContainer

        public org.kie.api.runtime.KieContainer getKieClasspathContainer​(String containerId)
        Specified by:
        getKieClasspathContainer in interface org.kie.api.KieServices
      • getKieClasspathContainer

        public org.kie.api.runtime.KieContainer getKieClasspathContainer​(String containerId,
                                                                         ClassLoader classLoader)
        Specified by:
        getKieClasspathContainer in interface org.kie.api.KieServices
      • newKieClasspathContainer

        public org.kie.api.runtime.KieContainer newKieClasspathContainer()
        Specified by:
        newKieClasspathContainer in interface org.kie.api.KieServices
      • newKieClasspathContainer

        public org.kie.api.runtime.KieContainer newKieClasspathContainer​(ClassLoader classLoader)
        Specified by:
        newKieClasspathContainer in interface org.kie.api.KieServices
      • newKieClasspathContainer

        public org.kie.api.runtime.KieContainer newKieClasspathContainer​(String containerId)
        Specified by:
        newKieClasspathContainer in interface org.kie.api.KieServices
      • newKieClasspathContainer

        public org.kie.api.runtime.KieContainer newKieClasspathContainer​(String containerId,
                                                                         ClassLoader classLoader)
        Specified by:
        newKieClasspathContainer in interface org.kie.api.KieServices
      • newKieClasspathContainer

        public org.kie.api.runtime.KieContainer newKieClasspathContainer​(String containerId,
                                                                         ClassLoader classLoader,
                                                                         org.kie.api.builder.ReleaseId releaseId)
        Specified by:
        newKieClasspathContainer in interface org.kie.api.KieServices
      • nullKieClasspathContainer

        public void nullKieClasspathContainer()
      • nullAllContainerIds

        public void nullAllContainerIds()
        Voids the internal map of containerId (s) used for handling reference and unique checks. This method is intended for use in unit test only.
      • clearRefToContainerId

        public void clearRefToContainerId​(String containerId,
                                          org.kie.api.runtime.KieContainer containerRef)
        Description copied from interface: InternalKieServices
        Clear the containerId reference from the internal registry hold by the KieServices. Epsecially helpful to avoid leaking reference on container dispose(), to inadvertently keep a reference in the internal registry which would never be GC.
        Specified by:
        clearRefToContainerId in interface InternalKieServices
      • newKieContainer

        public org.kie.api.runtime.KieContainer newKieContainer​(org.kie.api.builder.ReleaseId releaseId)
        Specified by:
        newKieContainer in interface org.kie.api.KieServices
      • newKieContainer

        public org.kie.api.runtime.KieContainer newKieContainer​(String containerId,
                                                                org.kie.api.builder.ReleaseId releaseId)
        Specified by:
        newKieContainer in interface org.kie.api.KieServices
      • newKieContainer

        public org.kie.api.runtime.KieContainer newKieContainer​(org.kie.api.builder.ReleaseId releaseId,
                                                                ClassLoader classLoader)
        Specified by:
        newKieContainer in interface org.kie.api.KieServices
      • newKieContainer

        public org.kie.api.runtime.KieContainer newKieContainer​(String containerId,
                                                                org.kie.api.builder.ReleaseId releaseId,
                                                                ClassLoader classLoader)
        Specified by:
        newKieContainer in interface org.kie.api.KieServices
      • newKieBuilder

        public org.kie.api.builder.KieBuilder newKieBuilder​(File file)
        Specified by:
        newKieBuilder in interface org.kie.api.KieServices
      • newKieBuilder

        public org.kie.api.builder.KieBuilder newKieBuilder​(org.kie.api.builder.KieFileSystem kieFileSystem)
        Specified by:
        newKieBuilder in interface org.kie.api.KieServices
      • newKieBuilder

        public org.kie.api.builder.KieBuilder newKieBuilder​(org.kie.api.builder.KieFileSystem kieFileSystem,
                                                            ClassLoader classLoader)
        Specified by:
        newKieBuilder in interface org.kie.api.KieServices
      • newKieScanner

        public org.kie.api.builder.KieScanner newKieScanner​(org.kie.api.runtime.KieContainer kieContainer)
        Specified by:
        newKieScanner in interface org.kie.api.KieServices
      • newKieScanner

        public org.kie.api.builder.KieScanner newKieScanner​(org.kie.api.runtime.KieContainer kieContainer,
                                                            String repositoryFolder)
        Specified by:
        newKieScanner in interface org.kie.api.KieServices
      • getResources

        public org.kie.api.io.KieResources getResources()
        Specified by:
        getResources in interface org.kie.api.KieServices
      • getCommands

        public org.kie.api.command.KieCommands getCommands()
        Specified by:
        getCommands in interface org.kie.api.KieServices
      • getMarshallers

        public org.kie.api.marshalling.KieMarshallers getMarshallers()
        Specified by:
        getMarshallers in interface org.kie.api.KieServices
      • getLoggers

        public org.kie.api.logger.KieLoggers getLoggers()
        Specified by:
        getLoggers in interface org.kie.api.KieServices
      • getExecutors

        public org.kie.api.concurrent.KieExecutors getExecutors()
      • getStoreServices

        public org.kie.api.persistence.jpa.KieStoreServices getStoreServices()
        Specified by:
        getStoreServices in interface org.kie.api.KieServices
      • newReleaseId

        public org.kie.api.builder.ReleaseId newReleaseId​(String groupId,
                                                          String artifactId,
                                                          String version)
        Specified by:
        newReleaseId in interface org.kie.api.KieServices
      • newKieModuleModel

        public org.kie.api.builder.model.KieModuleModel newKieModuleModel()
        Specified by:
        newKieModuleModel in interface org.kie.api.KieServices
      • newKieFileSystem

        public org.kie.api.builder.KieFileSystem newKieFileSystem()
        Specified by:
        newKieFileSystem in interface org.kie.api.KieServices
      • newKieBaseConfiguration

        public org.kie.api.KieBaseConfiguration newKieBaseConfiguration()
        Specified by:
        newKieBaseConfiguration in interface org.kie.api.KieServices
      • newKieBaseConfiguration

        public org.kie.api.KieBaseConfiguration newKieBaseConfiguration​(Properties properties)
        Specified by:
        newKieBaseConfiguration in interface org.kie.api.KieServices
      • newKieBaseConfiguration

        public org.kie.api.KieBaseConfiguration newKieBaseConfiguration​(Properties properties,
                                                                        ClassLoader classLoader)
        Specified by:
        newKieBaseConfiguration in interface org.kie.api.KieServices
      • newKieSessionConfiguration

        public org.kie.api.runtime.KieSessionConfiguration newKieSessionConfiguration()
        Specified by:
        newKieSessionConfiguration in interface org.kie.api.KieServices
      • newKieSessionConfiguration

        public org.kie.api.runtime.KieSessionConfiguration newKieSessionConfiguration​(Properties properties)
        Specified by:
        newKieSessionConfiguration in interface org.kie.api.KieServices
      • newKieSessionConfiguration

        public org.kie.api.runtime.KieSessionConfiguration newKieSessionConfiguration​(Properties properties,
                                                                                      ClassLoader classLoader)
        Specified by:
        newKieSessionConfiguration in interface org.kie.api.KieServices
      • newEnvironment

        public org.kie.api.runtime.Environment newEnvironment()
        Specified by:
        newEnvironment in interface org.kie.api.KieServices