Programmatically setting pluginsExternalLocation

It appears there isn't an interception point where I can
programmatically set the pluginsExternalLocation setting.

The loader service calls onConfiguration for the plugin service before
processing the afterConfigurationLoad state, and the
setCustomPluginsExternalPath function is private so I can't call it
directly.

How would I do this then?

thanks,

.brett

I am currently doing this using the onRequest option for ColdBox, that is
setup in the Config.cfc or Config.xml.cfm file.

If you need some more help on this please let me know, I currently do ths
for my skinService and another service for changing handlers on the fly.

Regards,
Andrew Scott
http://www.andyscott.id.au/

From: coldbox@googlegroups.com [mailto:coldbox@googlegroups.com] On
Behalf Of Brett
Sent: Wednesday, 15 September 2010 7:28 AM
To: ColdBox Platform
Subject: [coldbox:5791] Programmatically setting pluginsExternalLocation

It appears there isn't an interception point where I can programmatically

set

the pluginsExternalLocation setting.

The loader service calls onConfiguration for the plugin service before
processing the afterConfigurationLoad state, and the
setCustomPluginsExternalPath function is private so I can't call it

directly.

Brett,

You can set it initially in the Coldbox.cfc config file in the coldbox
structure

pluginsExternalLocation = ""

Then you can programmatically change the setting.

setSetting("pluginsExternalLocation","somefolder.plugins");

Just keep in mind that once you change the setting, it is that setting
until you change it again or reinit the framework, so if you are doing
this temporarily, be sure to change it back.

Curt Gratz
Computer Know How

Thanks for the replies guys.

@Andrew - Could you post more info how you are doing this?

@Curt - I don't think that works, at least it hasn't for me. From
looking at the code it appears the pluginsExternalLocation is set into
the pluginService when the service is loaded so changing the value of
this setting does not get reflected in the pluginService and no
external plugins are found.

.brett

The methods are now public.

Luis F. Majano
President
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

awesome, thanks!