The following issue has been updated:
Updater: Marcus Brito (mailto:[EMAIL PROTECTED])
Date: Wed, 14 Jul 2004 11:55 AM
Comment:
Here goes a patch that implements the requested feature, but in a different way
from what was originally suggested in the wiki.
I've added a getService(java.lang.Class serviceInterface) method to the
Registry inteface, and the correspondent implementation in RegistryImpl. The
implementation will check for services that implement the given interface, and
return it. This is supposed to be used only when you have a single service
implementing that interface -- it will throw an exception if more than one
service implementing the interface is found.
The patch also contains test cases for the added functionality.
Changes:
Attachment changed to hivemind-unique-service.patch
---------------------------------------------------------------------
For a full history of the issue, see:
http://issues.apache.org/jira/browse/HIVEMIND-20?page=history
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/HIVEMIND-20
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HIVEMIND-20
Summary: Simplified lookup for services with only one implmentation
Type: Improvement
Status: Open
Priority: Major
Project: HiveMind
Components:
framework
Versions:
1.0
Assignee: Howard M. Lewis Ship
Reporter: Juan Carlos Estibariz
Created: Thu, 8 Jul 2004 9:30 AM
Updated: Wed, 14 Jul 2004 11:55 AM
Description:
Most of the time my services have the same id as the interface fully qualified
name, with the simplified getService method for Registry proposed in the
FeatureRequest wiki (4. Support Globally Unique Services), it would save the
hassle of dealing with additional strings for the service ids
http://wiki.apache.org/jakarta-hivemind/FeatureRequest
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]