You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@storm.apache.org by "Roshan Naik (JIRA)" <ji...@apache.org> on 2017/11/07 00:10:00 UTC

[jira] [Comment Edited] (STORM-2796) Flux: Provide means for invoking static factory methods

    [ https://issues.apache.org/jira/browse/STORM-2796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16238504#comment-16238504 ] 

Roshan Naik edited comment on STORM-2796 at 11/7/17 12:09 AM:
--------------------------------------------------------------

Yaml looks fine. Would be nice to make sure that  its works with this type of method signatures as well:

{code}
public static MyComponent newInstance(Integer x, SomeObject... variadic)
{code}

Basically be able to pass a mix of objects and arrays/variadics as args. I think the ability to pass array args is done via an undocumented feature called `reflist`. Just want to make sure it is supported for factory methods as well.

Which reminds me that it would be good to update the docs on 'reflist'  while updating the docs about factory methods.



was (Author: roshan_naik):
Yaml looks fine. Would be nice to make sure that  its works with this type of method signatures as well:

{code}
public static MyComponent newInstance(Integer x, SomeObject... variadic)
{code}

Basically be able to pass a mix of objects and arrays/variadics as args. I think the ability to pass array args is done via an undocumented feature called `reflist`. Just want to make sure it it supported for factory methods as well.

Which reminds me that it would be good to update the docs on 'reflist'  while updating the docs about factor methods.


> Flux: Provide means for invoking static factory methods
> -------------------------------------------------------
>
>                 Key: STORM-2796
>                 URL: https://issues.apache.org/jira/browse/STORM-2796
>             Project: Apache Storm
>          Issue Type: Improvement
>          Components: Flux
>    Affects Versions: 2.0.0, 1.1.1, 1.2.0, 1.0.6
>            Reporter: P. Taylor Goetz
>            Assignee: P. Taylor Goetz
>
> Provide a means to invoke static factory methods for flux components. E.g:
> Java signature:
> {code}
> public static MyComponent newInstance(String... params)
> {code}
> Yaml:
> {code}
>     className: "org.apache.storm.flux.test.MyComponent"
>     factory: "newInstance"
>     factoryArgs: ["a", "b", "c"]
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)