Is there any way to "merge" registries?  Suppose I have a module descriptor
that I want to use to build a stateful, session-specific registry (the
services contained in it may safely maintain state if they wish).  Now, some
of the services that are defined in this module require  other services
which are safely shared and I do not want to duplicate them.  So, what I
want is to be able to create one GLOBAL registry and be able to build this
session-specific registry so that it uses some of the services in the global
registry.  Does that make sense?  Here's what I had in mind...


Registry globalRegistry = ...;

RegistryBuilder builder = new RegistryBuilder();
builder.addExistingRegistry( globalRegistry );
builder.processModules( someResolver );
Registry userRegistry = builder.constructRegistry(Locale.getDefault());

So, when the "userRegistry" is built, the RegistryBuilder will use the
"globalRegistry" to resolve service dependencies.  Is there any way to do
such a thing?



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to