]
Mario Fusco commented on DROOLS-1536:
-------------------------------------
Cherry-picked to branch 7.0.x with
Augment KieAssembler with a kjar context
----------------------------------------
Key: DROOLS-1536
URL:
https://issues.jboss.org/browse/DROOLS-1536
Project: Drools
Issue Type: Enhancement
Reporter: Matteo Mortari
Assignee: Mario Fusco
Currently KieAssembler are created per-runtime and cached globally, a sort of a
singleton.
There is a need to have a "kjar context" so that KieAssembler might be able to
cache some resources as needed on a per-kjar basis.
Currently this is not possible because indeed KieAssemblers are created at runtime
singleton-like level, and unaware of the kjar context.
(a KBuilder is passed, but this would offer only a creation-time context, and a cache
based on this could not realize when the related kjar context is no longer needed.)