------- Forwarded message ------- From: "Johan Lindquist" <[EMAIL PROTECTED]> To: "Aarti Parikh" <[EMAIL PROTECTED]> Subject: Re: loading hivemind core modules only Date: Fri, 03 Sep 2004 20:27:26 +0200
Hi Aarti,
You can construct the registry using your own class resolver and resources as shown below. I am unsure if you need to load the core modules as well manually in this case as well, but maybe someone can clarify that. One thing though, you need to load *all* modules you need before constructing the registry as HiveMind can not load modules at runtime, after the registry has been created.
Hope that helps,
Johan
---------------8<------------------------
// Create a new registry builder RegistryBuilder registryBuilder = new RegistryBuilder();
// Use the default resolver for now ClassResolver classResolver = new DefaultClassResolver();
// Load custom module
registryBuilder.processModule(classResolver,new
FileResource("/some/path/to/module"));// Create the registry Registry registry = registryBuilder.constructRegistry(Locale.getDefault());
On Fri, 3 Sep 2004 13:19:13 -0400, Aarti Parikh <[EMAIL PROTECTED]> wrote:
Is there a way I can load the core hivemind modules and ignore all other modules in the classpath.
I have a situation where I would like the user to select which hivemind module should be loaded.
-Aarti
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- you too?
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
