[forge-dev] Running Furnace (Forge container) in a flat classloader

Ivan St. Ivanov ivan.st.ivanov at gmail.com
Fri Jul 21 05:07:22 EDT 2017


Hi George,

If I got it right, that's really awesome! No, no, let me put it in another
way: that's amazing!!! :)

Let me try and explain what I got.

If I add dependency in my project to furnace-embedded and to Forge BOM (or
whichever project that exports maven addons, i.e. commands), I will be able
to call those addons/commands programmatically form my project.

That is, I can use the simple container to look up e.g. the create project
command and run it, configuring it with the "input" like the UI does. And
this will create a new project for me without running Forge as a separate
process. Right?

Cheers,
Ivan

On Fri, Jul 21, 2017 at 8:10 AM, George Gastaldi <ggastald at redhat.com>
wrote:

> Hey all!
>
> For those interested in running Forge in a flat classloader, using CDI in
> its full potential (including Interceptors and Decorators), I created a
> project that may help you[1].
>
> It is basically an implementation of the Furnace API that exposes the
> services provided by addons that use the simple-container using a CDI
> extension. Addons that depend on the CDI container are already
> CDI-friendly, so expect no changes in this project when loading those
> addons.
>
> It may save you some memory by not starting several Weld instances and
> it's really fast. Give it a try if you like!
>
> [1] https://github.com/gastaldi/furnace-embedded
>
> Best Regards,
>
>
>
> George Gastaldi
>
> Principal Software Engineer
>
> Red Hat <https://www.redhat.com>
>
> Remote
>
> Joinville - Santa Catarina
>
> ggastald at redhat.com    M: +55-47-99711-1000
> <https://red.ht/sig>
> TRIED. TESTED. TRUSTED. <https://redhat.com/trusted>
> @redhatnews <https://twitter.com/redhatnews>   Red Hat
> <https://www.linkedin.com/company/red-hat>   Red Hat
> <https://www.facebook.com/RedHatInc>
>
>


More information about the forge-dev mailing list