You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hivemind.apache.org by Aarti Parikh <aa...@gmail.com> on 2004/09/03 19:19:13 UTC

loading hivemind core modules only

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: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org


Fwd: Re: loading hivemind core modules only

Posted by Johan Lindquist <jo...@kawoo.co.uk>.
------- Forwarded message -------
From: "Johan Lindquist" <jo...@kawoo.co.uk>
To: "Aarti Parikh" <aa...@gmail.com>
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 <aa...@gmail.com>
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: hivemind-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
>
>



-- 
you too?

---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org