You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hivemind.apache.org by "Achim Hügen (JIRA)" <hi...@jakarta.apache.org> on 2005/01/14 00:23:18 UTC

[jira] Created: (HIVEMIND-84) BuilderFactory support for typed configurations instead of lists

BuilderFactory support for typed configurations instead of lists
----------------------------------------------------------------

         Key: HIVEMIND-84
         URL: http://issues.apache.org/jira/browse/HIVEMIND-84
     Project: HiveMind
        Type: Improvement
  Components: framework  
    Versions: 1.1    
    Reporter: Achim Hügen
    Priority: Minor
 Attachments: typed-configuration-patch.zip

What always bothered me is the need to define configuration properties or parameters as java.util.List
even if the configuration has a single contribution only (defined with occurs="1" or occurs="0..1")
I rather often use such configurations because it's an comfortable way to separate the service construction (via builder factory) from the service configuration (which is done at deployment time).

So I improved builder factory. Now you can define  configuration properties and parameters as typed configurations:

For example, use:

public void setConfiguration(Datum datum)
{
    _datum = datum;
}

instead of:

public void setConfiguration(List configuration)
{
    _datum = (Datum) configuration.get(0);
}
 

-- 
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-84) BuilderFactory support for typed configurations instead of lists

Posted by "Achim Hügen (JIRA)" <hi...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/HIVEMIND-84?page=history ]

Achim Hügen updated HIVEMIND-84:
--------------------------------

    Attachment: typed-configuration-patch.zip

> BuilderFactory support for typed configurations instead of lists
> ----------------------------------------------------------------
>
>          Key: HIVEMIND-84
>          URL: http://issues.apache.org/jira/browse/HIVEMIND-84
>      Project: HiveMind
>         Type: Improvement
>   Components: framework
>     Versions: 1.1
>     Reporter: Achim Hügen
>     Priority: Minor
>  Attachments: typed-configuration-patch.zip
>
> What always bothered me is the need to define configuration properties or parameters as java.util.List
> even if the configuration has a single contribution only (defined with occurs="1" or occurs="0..1")
> I rather often use such configurations because it's an comfortable way to separate the service construction (via builder factory) from the service configuration (which is done at deployment time).
> So I improved builder factory. Now you can define  configuration properties and parameters as typed configurations:
> For example, use:
> public void setConfiguration(Datum datum)
> {
>     _datum = datum;
> }
> instead of:
> public void setConfiguration(List configuration)
> {
>     _datum = (Datum) configuration.get(0);
> }
>  

-- 
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] Resolved: (HIVEMIND-84) BuilderFactory support for typed configurations instead of lists

Posted by "Achim Hügen (JIRA)" <hi...@jakarta.apache.org>.
     [ https://issues.apache.org/jira/browse/HIVEMIND-84?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Achim Hügen resolved HIVEMIND-84.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0-alpha-1

hivemind 2 configuration types are not restricted to lists

> BuilderFactory support for typed configurations instead of lists
> ----------------------------------------------------------------
>
>                 Key: HIVEMIND-84
>                 URL: https://issues.apache.org/jira/browse/HIVEMIND-84
>             Project: HiveMind
>          Issue Type: Improvement
>          Components: framework
>    Affects Versions: 1.1
>            Reporter: Achim Hügen
>            Priority: Minor
>             Fix For: 2.0-alpha-1
>
>         Attachments: typed-configuration-patch.zip
>
>
> What always bothered me is the need to define configuration properties or parameters as java.util.List
> even if the configuration has a single contribution only (defined with occurs="1" or occurs="0..1")
> I rather often use such configurations because it's an comfortable way to separate the service construction (via builder factory) from the service configuration (which is done at deployment time).
> So I improved builder factory. Now you can define  configuration properties and parameters as typed configurations:
> For example, use:
> public void setConfiguration(Datum datum)
> {
>     _datum = datum;
> }
> instead of:
> public void setConfiguration(List configuration)
> {
>     _datum = (Datum) configuration.get(0);
> }
>  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVEMIND-84) BuilderFactory support for typed configurations instead of lists

Posted by "Knut Wannheden (JIRA)" <hi...@jakarta.apache.org>.
    [ http://issues.apache.org/jira/browse/HIVEMIND-84?page=comments#action_12314238 ] 

Knut Wannheden commented on HIVEMIND-84:
----------------------------------------

No, this patch has not been applied yet. HiveMind 1.1 is still in beta, but you should be able to get it fixed with the final 1.1 release (and most likely even earlier).

> BuilderFactory support for typed configurations instead of lists
> ----------------------------------------------------------------
>
>          Key: HIVEMIND-84
>          URL: http://issues.apache.org/jira/browse/HIVEMIND-84
>      Project: HiveMind
>         Type: Improvement
>   Components: framework
>     Versions: 1.1
>     Reporter: Achim Hügen
>     Priority: Minor
>  Attachments: typed-configuration-patch.zip
>
> What always bothered me is the need to define configuration properties or parameters as java.util.List
> even if the configuration has a single contribution only (defined with occurs="1" or occurs="0..1")
> I rather often use such configurations because it's an comfortable way to separate the service construction (via builder factory) from the service configuration (which is done at deployment time).
> So I improved builder factory. Now you can define  configuration properties and parameters as typed configurations:
> For example, use:
> public void setConfiguration(Datum datum)
> {
>     _datum = datum;
> }
> instead of:
> public void setConfiguration(List configuration)
> {
>     _datum = (Datum) configuration.get(0);
> }
>  

-- 
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
-
For more information on JIRA, 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-84) BuilderFactory support for typed configurations instead of lists

Posted by "Michael Mattox (JIRA)" <hi...@jakarta.apache.org>.
    [ http://issues.apache.org/jira/browse/HIVEMIND-84?page=comments#action_12314237 ] 

Michael Mattox commented on HIVEMIND-84:
----------------------------------------

I've been going crazy trying to figure out how to do this (that and get constructor injection working).. has the patch been applied?  It says Fix Version 1.1 but this issue hasn't been updated and the docs haven't been updated..



> BuilderFactory support for typed configurations instead of lists
> ----------------------------------------------------------------
>
>          Key: HIVEMIND-84
>          URL: http://issues.apache.org/jira/browse/HIVEMIND-84
>      Project: HiveMind
>         Type: Improvement
>   Components: framework
>     Versions: 1.1
>     Reporter: Achim Hügen
>     Priority: Minor
>  Attachments: typed-configuration-patch.zip
>
> What always bothered me is the need to define configuration properties or parameters as java.util.List
> even if the configuration has a single contribution only (defined with occurs="1" or occurs="0..1")
> I rather often use such configurations because it's an comfortable way to separate the service construction (via builder factory) from the service configuration (which is done at deployment time).
> So I improved builder factory. Now you can define  configuration properties and parameters as typed configurations:
> For example, use:
> public void setConfiguration(Datum datum)
> {
>     _datum = datum;
> }
> instead of:
> public void setConfiguration(List configuration)
> {
>     _datum = (Datum) configuration.get(0);
> }
>  

-- 
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
-
For more information on JIRA, 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