Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.0.0, 1.1.1, 1.2.0, 1.0.6
Description
Provide a means to invoke static factory methods for flux components. E.g:
Java signature:
public static MyComponent newInstance(String... params)
Yaml:
className: "org.apache.storm.flux.test.MyComponent" factory: "newInstance" factoryArgs: ["a", "b", "c"]
Also include a fix for non-primitive numbers, so constructs like the following work:
Java constructor:
public TestBolt(Long l){}
Yaml:
- id: "bolt-4" className: "org.apache.storm.flux.test.TestBolt" constructorArgs: - 10 parallelism: 1
(Before fix the above would fail because snakeyaml would convert `10` to an Integer.)
Attachments
Issue Links
- links to