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 22:25:08 UTC

[jira] Closed: (HIVEMIND-11) getConfiguration missing from Registry Interface

Message:

   The following issue has been closed.

---------------------------------------------------------------------
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: Closed
   Priority: Major
 Resolution: FIXED

    Project: HiveMind
 Components: 
             framework
   Fix Fors:
             1.0
   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 1:23 PM

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