public interface KieRepository
Modifier and Type | Method and Description |
---|---|
void |
addKieModule(KieModule kModule)
Adds a new KieModule to this KieRepository
|
KieModule |
addKieModule(Resource resource,
Resource... dependencies)
Creates a new KieModule using the provided resource and dependencies
and automatically adds it to this KieRepository
|
ReleaseId |
getDefaultReleaseId()
Returns the default ReleaseId used to identify a KieModule in this KieRepository
if the user didn't explicitly provide one
|
KieModule |
getKieModule(ReleaseId releaseId)
Retrieve a KieModule with the given ReleaseId in this KieRepository.
|
KieModule |
removeKieModule(ReleaseId releaseId)
Remove a no longer useful KieModule, identified by the given ReleaseId, from this KieRepository
|
ReleaseId getDefaultReleaseId()
void addKieModule(KieModule kModule)
KieModule addKieModule(Resource resource, Resource... dependencies)
resource
- dependencies
- KieModule getKieModule(ReleaseId releaseId)
KieModule kieModule = kieRepository.getKieModule( KieServices.Factory.get().newReleaseId("group", "artifact", "LATEST") );or
KieModule kieModule = kieRepository.getKieModule( KieServices.Factory.get().newReleaseId("group", "artifact", "[1.0,1.2)") );
releaseId
- The releaseId identifying the KieModule to be returnedKieModule removeKieModule(ReleaseId releaseId)
releaseId
- The releaseId identifying the KieModule to be removedCopyright © 2001–2017 JBoss by Red Hat. All rights reserved.