You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hivemind.apache.org by Steve Gibson <St...@cowww.com> on 2004/06/17 17:01:39 UTC

RE: [SPAM] - Grabbbing a reference to the registry - Email has different SMTP TO: and MIME TO: fields in the email addresses

My question is - do you really need a registry instance? Can't you get
what you need from Module?
Module.getService can take a fully-qualified serviceId...

Steve Gibson

-----Original Message-----
From: Nelson, Randy [mailto:randy.j.nelson@bankofamerica.com] 
Sent: Thursday, June 17, 2004 10:55 AM
To: hivemind-dev@jakarta.apache.org
Subject: [SPAM] - Grabbbing a reference to the registry - Email has
different SMTP TO: and MIME TO: fields in the email addresses


We have a ServiceBroker which associates different service
implementations
with a head declaration and checks service versions.

In the ServiceBroker, under Hivemind 1.0 alpha, we would use the
registry to
 1. get a given module, then use the Module to get the ServicePoint (was
ServiceExtensionPoint) for a ServiceID. 
 2. resolve "valueForSymbol()"  

We were able to make the registry available to this internal service by
using the "set-module" rule on a contribution object, then asking this
module for the registry  (module.getRegistry()).


However, under the 1.0beta-1, several items have changed, including the
fact
that there is no longer a "getRegistry()" method on Module.  The
ModuleImpl,
does have a setRegistry().

Question: How can/should I get ahold of the registry now?  

Thanks,
Randy

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


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


RE: [SPAM] - Grabbbing a reference to the registry - Email has different SMTP TO: and MIME TO: fields in the email addresses

Posted by "Howard M. Lewis Ship" <hl...@comcast.net>.
There's a kind of triad between Registry, RegistryInternal and Module.  The Registry is the "outside
looking in" view of the Registry.  RegistryInternal is the inner workings and Module is a gateway
into RegistryInternal for services and contributions within a specific module.

The need for this doesn't exist yet, but in the future, the three interfaces will diverge more, as
we add some support for visibility (of services, configurations and schemas).

Module duplicates a bunch of methods from RegistryInternal, and adds automatic qualifiactons of
module-local IDS to fully qualified ids.

--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind
http://howardlewisship.com


> -----Original Message-----
> From: Steve Gibson [mailto:Steve.Gibson@cowww.com] 
> Sent: Thursday, June 17, 2004 11:02 AM
> To: hivemind-dev@jakarta.apache.org
> Subject: RE: [SPAM] - Grabbbing a reference to the registry - 
> Email has different SMTP TO: and MIME TO: fields in the email 
> addresses
> 
> 
> My question is - do you really need a registry instance? Can't you get
> what you need from Module?
> Module.getService can take a fully-qualified serviceId...
> 
> Steve Gibson
> 
> -----Original Message-----
> From: Nelson, Randy [mailto:randy.j.nelson@bankofamerica.com] 
> Sent: Thursday, June 17, 2004 10:55 AM
> To: hivemind-dev@jakarta.apache.org
> Subject: [SPAM] - Grabbbing a reference to the registry - Email has
> different SMTP TO: and MIME TO: fields in the email addresses
> 
> 
> We have a ServiceBroker which associates different service
> implementations
> with a head declaration and checks service versions.
> 
> In the ServiceBroker, under Hivemind 1.0 alpha, we would use the
> registry to
>  1. get a given module, then use the Module to get the 
> ServicePoint (was
> ServiceExtensionPoint) for a ServiceID. 
>  2. resolve "valueForSymbol()"  
> 
> We were able to make the registry available to this internal 
> service by
> using the "set-module" rule on a contribution object, then asking this
> module for the registry  (module.getRegistry()).
> 
> 
> However, under the 1.0beta-1, several items have changed, 
> including the
> fact
> that there is no longer a "getRegistry()" method on Module.  The
> ModuleImpl,
> does have a setRegistry().
> 
> Question: How can/should I get ahold of the registry now?  
> 
> Thanks,
> Randy
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: hivemind-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: hivemind-dev-help@jakarta.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: hivemind-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: hivemind-dev-help@jakarta.apache.org
> 


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