|
KIE API 6.0.0.Beta3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface KieRepository
KieRepository is a singleton acting as a repository for all the available KieModules regardless if they are stored in the maven repository or programmatically built by the user
Method Summary | |
---|---|
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. |
Method Detail |
---|
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 returned
|
KIE API 6.0.0.Beta3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |