# Package Loader? like Class Loader with Reflect

**URL:** <https://forum.inductiveautomation.com/t/package-loader-like-class-loader-with-reflect/69810>\
**Category:** Module Development\
**Tags:** ignition79\
**Created:** [February 14, 2023, 1:11am UTC](https://forum.inductiveautomation.com/t/package-loader-like-class-loader-with-reflect/69810 "2023-02-14T01:11:27Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 14, 2023, 1:27am UTC](https://forum.inductiveautomation.com/t/package-loader-like-class-loader-with-reflect/69810/5 "2023-02-14T01:27:26Z")

</div>

> [@paul-griffith](#):
>
> code generation tool to spit out a simple static class with all the appropriate public static final declarations

Sounds awfully familiar....

> [@Machine Learning in Ignition using MATLAB](https://forum.inductiveautomation.com/t/machine-learning-in-ignition-using-matlab/56053/4):
>
> So, showing the whole thing is not on the table. Sorry. But one utility class I wrote will help you through the trickiest part of it: [FieldClassBuilder.java](https://www.automation-pros.com/streamer/FieldClassBuilder.java) (Note the MIT License.) This builder will assemble any desired classes from anywhere in your module, including any dynamically loaded classes you might access, into a generated class with a public static final field for each supplied class. The output from build() is suitable for use with ScriptManager.addScriptModule() in your various …

Yes, I do that. My Image Streamer module handles pretty much whatever version of OpenCV that's available. Intelligently produces usable jython classes and constants from what's in the OpenCV jar.

---

_[View the full topic](https://forum.inductiveautomation.com/t/package-loader-like-class-loader-with-reflect/69810)._
