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/06/25 18:55:08 UTC
[jira] Commented: (HIVEMIND-11) getConfiguration missing from Registry Interface
The following comment has been added to this issue:
Author: James Carman
Created: Fri, 25 Jun 2004 9:54 AM
Body:
Please let us know what you intend to do. If you want to remove the method from the interface and try to make people use a service to manage contributions to a configuration, that's cool with me, as it's probably cleaner. Anyway, I am writing my TSS article now, so it'd be nice to have the code in my article in sync with the current API. :-) Thanks!
---------------------------------------------------------------------
View this comment:
http://issues.apache.org/jira/browse/HIVEMIND-11?page=comments#action_36351
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/HIVEMIND-11
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HIVEMIND-11
Summary: getConfiguration missing from Registry Interface
Type: Bug
Status: Open
Priority: Major
Project: HiveMind
Components:
framework
Versions:
1.0
Assignee: Howard M. Lewis Ship
Reporter: Achim Hügen
Created: Fri, 25 Jun 2004 2:02 AM
Updated: Fri, 25 Jun 2004 9:54 AM
Description:
The getConfiguration method is no longer present in the registry interface but has been moved to RegistryInfrastructure.
That change made dealing with the registry unintuitive, retrieving a configuration requires some good guesswork, especially since the documentation is not uptodate.
Let's have a look how the documentation must change, this reveals some of the difficulties. Current documentation:
Registry registry = . . .;
List elements = registry.getConfiguration("com.myco.MyConfig");
Simple and clean. Instead we need a reference to RegistryInfrastructure.
Only solution is a cast:
List elements = ( (RegistryInfrastructure) registry ).getConfiguration("com.myco.MyConfig");
Besides beeing unintuitive, there is no contract, that ensures that the Registry object additionally implements RegistryInfrastructure!
IMHO, dealing with two different interfaces for the most basic tasks is no good idea.
Howard, you already admitted on the mailing list, that you 'probably have been overly zealous in removing getConfiguration()'
Please restore the method.
Achim Huegen
---------------------------------------------------------------------
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