Class KieServicesImpl
- java.lang.Object
-
- org.drools.compiler.kie.builder.impl.KieServicesImpl
-
- All Implemented Interfaces:
InternalKieServices
,org.kie.api.KieServices
public class KieServicesImpl extends Object implements InternalKieServices
-
-
Constructor Summary
Constructors Constructor Description KieServicesImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearRefToContainerId(String containerId, org.kie.api.runtime.KieContainer containerRef)
Clear the containerId reference from the internal registry hold by the KieServices.org.kie.api.command.KieCommands
getCommands()
org.kie.api.concurrent.KieExecutors
getExecutors()
org.kie.api.runtime.KieContainer
getKieClasspathContainer()
Returns KieContainer for the classpathorg.kie.api.runtime.KieContainer
getKieClasspathContainer(ClassLoader classLoader)
org.kie.api.runtime.KieContainer
getKieClasspathContainer(String containerId)
org.kie.api.runtime.KieContainer
getKieClasspathContainer(String containerId, ClassLoader classLoader)
org.kie.api.logger.KieLoggers
getLoggers()
org.kie.api.marshalling.KieMarshallers
getMarshallers()
org.kie.api.builder.KieRepository
getRepository()
org.kie.api.io.KieResources
getResources()
org.kie.api.persistence.jpa.KieStoreServices
getStoreServices()
org.kie.api.runtime.Environment
newEnvironment()
org.kie.api.KieBaseConfiguration
newKieBaseConfiguration()
org.kie.api.KieBaseConfiguration
newKieBaseConfiguration(Properties properties)
org.kie.api.KieBaseConfiguration
newKieBaseConfiguration(Properties properties, ClassLoader classLoader)
org.kie.api.builder.KieBuilder
newKieBuilder(File file)
org.kie.api.builder.KieBuilder
newKieBuilder(org.kie.api.builder.KieFileSystem kieFileSystem)
org.kie.api.builder.KieBuilder
newKieBuilder(org.kie.api.builder.KieFileSystem kieFileSystem, ClassLoader classLoader)
org.kie.api.runtime.KieContainer
newKieClasspathContainer()
org.kie.api.runtime.KieContainer
newKieClasspathContainer(ClassLoader classLoader)
org.kie.api.runtime.KieContainer
newKieClasspathContainer(String containerId)
org.kie.api.runtime.KieContainer
newKieClasspathContainer(String containerId, ClassLoader classLoader)
org.kie.api.runtime.KieContainer
newKieClasspathContainer(String containerId, ClassLoader classLoader, org.kie.api.builder.ReleaseId releaseId)
org.kie.api.runtime.KieContainer
newKieContainer(String containerId, org.kie.api.builder.ReleaseId releaseId)
org.kie.api.runtime.KieContainer
newKieContainer(String containerId, org.kie.api.builder.ReleaseId releaseId, ClassLoader classLoader)
org.kie.api.runtime.KieContainer
newKieContainer(org.kie.api.builder.ReleaseId releaseId)
org.kie.api.runtime.KieContainer
newKieContainer(org.kie.api.builder.ReleaseId releaseId, ClassLoader classLoader)
org.kie.api.builder.KieFileSystem
newKieFileSystem()
org.kie.api.builder.model.KieModuleModel
newKieModuleModel()
org.kie.api.builder.KieScanner
newKieScanner(org.kie.api.runtime.KieContainer kieContainer)
org.kie.api.builder.KieScanner
newKieScanner(org.kie.api.runtime.KieContainer kieContainer, String repositoryFolder)
org.kie.api.runtime.KieSessionConfiguration
newKieSessionConfiguration()
org.kie.api.runtime.KieSessionConfiguration
newKieSessionConfiguration(Properties properties)
org.kie.api.runtime.KieSessionConfiguration
newKieSessionConfiguration(Properties properties, ClassLoader classLoader)
org.kie.api.builder.ReleaseId
newReleaseId(String groupId, String artifactId, String version)
void
nullAllContainerIds()
Voids the internal map of containerId (s) used for handling reference and unique checks.void
nullKieClasspathContainer()
void
registerListener(KieServicesEventListerner listener)
-
-
-
Method Detail
-
getRepository
public org.kie.api.builder.KieRepository getRepository()
- Specified by:
getRepository
in interfaceorg.kie.api.KieServices
-
getKieClasspathContainer
public org.kie.api.runtime.KieContainer getKieClasspathContainer()
Returns KieContainer for the classpath- Specified by:
getKieClasspathContainer
in interfaceorg.kie.api.KieServices
-
getKieClasspathContainer
public org.kie.api.runtime.KieContainer getKieClasspathContainer(ClassLoader classLoader)
- Specified by:
getKieClasspathContainer
in interfaceorg.kie.api.KieServices
-
getKieClasspathContainer
public org.kie.api.runtime.KieContainer getKieClasspathContainer(String containerId)
- Specified by:
getKieClasspathContainer
in interfaceorg.kie.api.KieServices
-
getKieClasspathContainer
public org.kie.api.runtime.KieContainer getKieClasspathContainer(String containerId, ClassLoader classLoader)
- Specified by:
getKieClasspathContainer
in interfaceorg.kie.api.KieServices
-
newKieClasspathContainer
public org.kie.api.runtime.KieContainer newKieClasspathContainer()
- Specified by:
newKieClasspathContainer
in interfaceorg.kie.api.KieServices
-
newKieClasspathContainer
public org.kie.api.runtime.KieContainer newKieClasspathContainer(ClassLoader classLoader)
- Specified by:
newKieClasspathContainer
in interfaceorg.kie.api.KieServices
-
newKieClasspathContainer
public org.kie.api.runtime.KieContainer newKieClasspathContainer(String containerId)
- Specified by:
newKieClasspathContainer
in interfaceorg.kie.api.KieServices
-
newKieClasspathContainer
public org.kie.api.runtime.KieContainer newKieClasspathContainer(String containerId, ClassLoader classLoader)
- Specified by:
newKieClasspathContainer
in interfaceorg.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 interfaceorg.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 interfaceInternalKieServices
-
newKieContainer
public org.kie.api.runtime.KieContainer newKieContainer(org.kie.api.builder.ReleaseId releaseId)
- Specified by:
newKieContainer
in interfaceorg.kie.api.KieServices
-
newKieContainer
public org.kie.api.runtime.KieContainer newKieContainer(String containerId, org.kie.api.builder.ReleaseId releaseId)
- Specified by:
newKieContainer
in interfaceorg.kie.api.KieServices
-
newKieContainer
public org.kie.api.runtime.KieContainer newKieContainer(org.kie.api.builder.ReleaseId releaseId, ClassLoader classLoader)
- Specified by:
newKieContainer
in interfaceorg.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 interfaceorg.kie.api.KieServices
-
newKieBuilder
public org.kie.api.builder.KieBuilder newKieBuilder(File file)
- Specified by:
newKieBuilder
in interfaceorg.kie.api.KieServices
-
newKieBuilder
public org.kie.api.builder.KieBuilder newKieBuilder(org.kie.api.builder.KieFileSystem kieFileSystem)
- Specified by:
newKieBuilder
in interfaceorg.kie.api.KieServices
-
newKieBuilder
public org.kie.api.builder.KieBuilder newKieBuilder(org.kie.api.builder.KieFileSystem kieFileSystem, ClassLoader classLoader)
- Specified by:
newKieBuilder
in interfaceorg.kie.api.KieServices
-
newKieScanner
public org.kie.api.builder.KieScanner newKieScanner(org.kie.api.runtime.KieContainer kieContainer)
- Specified by:
newKieScanner
in interfaceorg.kie.api.KieServices
-
newKieScanner
public org.kie.api.builder.KieScanner newKieScanner(org.kie.api.runtime.KieContainer kieContainer, String repositoryFolder)
- Specified by:
newKieScanner
in interfaceorg.kie.api.KieServices
-
getResources
public org.kie.api.io.KieResources getResources()
- Specified by:
getResources
in interfaceorg.kie.api.KieServices
-
getCommands
public org.kie.api.command.KieCommands getCommands()
- Specified by:
getCommands
in interfaceorg.kie.api.KieServices
-
getMarshallers
public org.kie.api.marshalling.KieMarshallers getMarshallers()
- Specified by:
getMarshallers
in interfaceorg.kie.api.KieServices
-
getLoggers
public org.kie.api.logger.KieLoggers getLoggers()
- Specified by:
getLoggers
in interfaceorg.kie.api.KieServices
-
getExecutors
public org.kie.api.concurrent.KieExecutors getExecutors()
-
getStoreServices
public org.kie.api.persistence.jpa.KieStoreServices getStoreServices()
- Specified by:
getStoreServices
in interfaceorg.kie.api.KieServices
-
newReleaseId
public org.kie.api.builder.ReleaseId newReleaseId(String groupId, String artifactId, String version)
- Specified by:
newReleaseId
in interfaceorg.kie.api.KieServices
-
newKieModuleModel
public org.kie.api.builder.model.KieModuleModel newKieModuleModel()
- Specified by:
newKieModuleModel
in interfaceorg.kie.api.KieServices
-
newKieFileSystem
public org.kie.api.builder.KieFileSystem newKieFileSystem()
- Specified by:
newKieFileSystem
in interfaceorg.kie.api.KieServices
-
newKieBaseConfiguration
public org.kie.api.KieBaseConfiguration newKieBaseConfiguration()
- Specified by:
newKieBaseConfiguration
in interfaceorg.kie.api.KieServices
-
newKieBaseConfiguration
public org.kie.api.KieBaseConfiguration newKieBaseConfiguration(Properties properties)
- Specified by:
newKieBaseConfiguration
in interfaceorg.kie.api.KieServices
-
newKieBaseConfiguration
public org.kie.api.KieBaseConfiguration newKieBaseConfiguration(Properties properties, ClassLoader classLoader)
- Specified by:
newKieBaseConfiguration
in interfaceorg.kie.api.KieServices
-
newKieSessionConfiguration
public org.kie.api.runtime.KieSessionConfiguration newKieSessionConfiguration()
- Specified by:
newKieSessionConfiguration
in interfaceorg.kie.api.KieServices
-
newKieSessionConfiguration
public org.kie.api.runtime.KieSessionConfiguration newKieSessionConfiguration(Properties properties)
- Specified by:
newKieSessionConfiguration
in interfaceorg.kie.api.KieServices
-
newKieSessionConfiguration
public org.kie.api.runtime.KieSessionConfiguration newKieSessionConfiguration(Properties properties, ClassLoader classLoader)
- Specified by:
newKieSessionConfiguration
in interfaceorg.kie.api.KieServices
-
newEnvironment
public org.kie.api.runtime.Environment newEnvironment()
- Specified by:
newEnvironment
in interfaceorg.kie.api.KieServices
-
registerListener
public void registerListener(KieServicesEventListerner listener)
- Specified by:
registerListener
in interfaceInternalKieServices
-
-