Matteo Mortari created DROOLS-616:
-------------------------------------
Summary: Move methods to access kjar resources from Internal-API to
public-API
Key: DROOLS-616
URL:
https://issues.jboss.org/browse/DROOLS-616
Project: Drools
Issue Type: Feature Request
Affects Versions: 6.1.0.Final
Reporter: Matteo Mortari
Assignee: Mark Proctor
Priority: Minor
Kindly consider to move methods to access kjar resources from Internal-API to public-API,
in order to enable an appropriate way to load a file resource from a kjar
"src/main/resources".
h5. Example scenario
Rule authors are placing additional files inside of src/main/resources, something along
the lines of readme file, license file, and csv files for additional data parameters not
needed by the rule themselves, but still required at runtime to be known by the
"host" application.
At runtime the kjar is loaded via "KieContainer from KieRepository" so it's
not directly available as a compile-scope maven dependency already inside my
runtime-application, and to avoid methods involving manually
ClassLoaders/getResource-on-class.
h5. Proposals:
Kindly consider moving at least the following methods:
- getFile() : File
- getFileNames() : Collection<String>
- getResource(String) : Resource
from InternalKieModule to public-API KieModule.
I leave to your expertise to evaluate which others may also be required, depending on the
several options for deployments.
Thanks.
Ciao,
MM
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)