You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hivemind.apache.org by hi...@jakarta.apache.org on 2004/07/08 18:31:08 UTC
[jira] Created: (HIVEMIND-20) Simplified lookup for services with only one implmentation
Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
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: Thu, 8 Jul 2004 9:30 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: hivemind-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-dev-help@jakarta.apache.org
[jira] Commented: (HIVEMIND-20) Simplified lookup for services with only one implmentation
Posted by hi...@jakarta.apache.org.
The following comment has been added to this issue:
Author: Howard M. Lewis Ship
Created: Sat, 17 Jul 2004 4:21 PM
Body:
I consider this patch a bit controversial in that an application may operate, and then by adding an additional module (that provides a second implementation of some service), it will fail.
However, it will fail fast with a good exception message.
I'm going to look into extending BuilderFactory to make use of this new API. It would be nice to say
construct (class=foo.bar.Baz autowire=true)
And have BuilderFactory identify any writable properties that "smell like" services (i.e., are an interface ... or perhaps, are an interface for which at least one service point exists).
Anyway, it could update those properties. Maybe do something similar for constructors (constructors need to be revisited a bit).
---------------------------------------------------------------------
View this comment:
http://issues.apache.org/jira/browse/HIVEMIND-20?page=comments#action_36731
---------------------------------------------------------------------
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: In Progress
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: Sat, 17 Jul 2004 4:21 PM
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: hivemind-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-dev-help@jakarta.apache.org
[jira] Commented: (HIVEMIND-20) Simplified lookup for services with only one implmentation
Posted by hi...@jakarta.apache.org.
The following comment has been added to this issue:
Author: Naresh Sikha
Created: Wed, 14 Jul 2004 12:05 PM
Body:
Thank you! Brainstorming a bit I think we can provide an efficiency when authoring hivemodule files.
Add an
<import module-id="org.apache.hivemind"/>
or
<import module-id="org.apache.hivemind" as-id="hivemind"/>
would allow set-service references to be more succinct:
<set-service id="ThreadLocalStorage"/> (assumes first import example)
<set-service id="hivemine.ThreadLocalStorage"/> (assumes second import example)
Extending this, we could auto import 'org.apache.hivemind' module id (kind of like java.lang)
This will make hivemodule definitions as terse as the Java code.
Thanks again.
---------------------------------------------------------------------
View this comment:
http://issues.apache.org/jira/browse/HIVEMIND-20?page=comments#action_36670
---------------------------------------------------------------------
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 12:05 PM
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: hivemind-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-dev-help@jakarta.apache.org
[jira] Updated: (HIVEMIND-20) Simplified lookup for services with only one implmentation
Posted by hi...@jakarta.apache.org.
The following issue has been updated:
Updater: Marcus Brito (mailto:mbrito@gmail.com)
Date: Wed, 14 Jul 2004 12:01 PM
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 org.apache.hivemind.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 12:01 PM
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: hivemind-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-dev-help@jakarta.apache.org
[jira] Closed: (HIVEMIND-20) Simplified lookup for services with only one implmentation
Posted by hi...@jakarta.apache.org.
Message:
The following issue has been closed.
Resolver: Howard M. Lewis Ship
Date: Sat, 17 Jul 2004 4:52 PM
Extending BuilderFactory will be tracked in a seperate issue.
---------------------------------------------------------------------
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: Closed
Priority: Major
Resolution: FIXED
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: Sat, 17 Jul 2004 4:52 PM
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: hivemind-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-dev-help@jakarta.apache.org
[jira] Commented: (HIVEMIND-20) Simplified lookup for services with only one implmentation
Posted by hi...@jakarta.apache.org.
The following comment has been added to this issue:
Author: Marcus Brito
Created: Wed, 14 Jul 2004 12:04 PM
Body:
Oh my... the company's firewall screwed up the upload. It was so smart that uploaded the file three times >.< Anyway, they should be identical, and the extra ones can be removed (along with the extra comments)
---------------------------------------------------------------------
View this comment:
http://issues.apache.org/jira/browse/HIVEMIND-20?page=comments#action_36669
---------------------------------------------------------------------
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 12:04 PM
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: hivemind-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-dev-help@jakarta.apache.org
[jira] Commented: (HIVEMIND-20) Simplified lookup for services with only one implmentation
Posted by hi...@jakarta.apache.org.
The following comment has been added to this issue:
Author: Howard M. Lewis Ship
Created: Wed, 14 Jul 2004 1:55 PM
Body:
My basic strategy is always to start very, very strict. If you start strict and learn the problem space, you can identify optimizations such as these, and introduce them without fear of destroying anything.
---------------------------------------------------------------------
View this comment:
http://issues.apache.org/jira/browse/HIVEMIND-20?page=comments#action_36673
---------------------------------------------------------------------
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 1:55 PM
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: hivemind-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-dev-help@jakarta.apache.org
[jira] Updated: (HIVEMIND-20) Simplified lookup for services with only one implmentation
Posted by hi...@jakarta.apache.org.
The following issue has been updated:
Updater: Marcus Brito (mailto:mbrito@gmail.com)
Date: Wed, 14 Jul 2004 12:00 PM
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 org.apache.hivemind.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 12:00 PM
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: hivemind-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-dev-help@jakarta.apache.org
[jira] Updated: (HIVEMIND-20) Simplified lookup for services with only one implmentation
Posted by hi...@jakarta.apache.org.
The following issue has been updated:
Updater: Marcus Brito (mailto:mbrito@gmail.com)
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: hivemind-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-dev-help@jakarta.apache.org