add possibility to define a directory containing OSGi bundles with this.javaSettings

Description

add possibility to define a directory containing OSGi bundles with this.javaSettings.
ATM you can define directories containing OSGi bundle jars or directly OSGi bundle jars with Application.cfc->javasettings but in that case Lucee will load the jar (as OSGi bundle).
What we need is the possibility to "register" an OSGi bundle directory without Lucee loading the jars.

So Lucee is aware of the existence of the jars but only does load them when needed.

Activity

Show:

Evagoras Charalambous 3 November 2020 at 22:14

Is this feature going to be added in? It would make a great addition.

Michael Offner 19 July 2019 at 14:50

you will be able to do as follows:

Application.cfc

this.javasettings.bundle="/path/to/my/bundles/directory";

then you can do in your code

 

createObject(type:'java',class:'my.lovely.Clazz',bundleName:'myBundle',bundleVersion:'1.2.3.4');

Lucee will then find the bundle in the directory defined, BUT it will load the bundle only on demand.

you can also define multiple bundle directories as follows:

this.javasettings.bundle=[ "/path/to/my/bundles/directory1", "/path/to/my/bundles/directory1" ];

 

Fixed

Details

Assignee

Reporter

Labels

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Sprint

Fix versions

Priority

Created 19 November 2018 at 20:13
Updated 3 November 2020 at 22:14
Resolved 19 July 2019 at 15:22

Flag notifications