I have a custom XML configuration defining a network like this
S1
\
+
\
S2
/ /
S3-+ /
/
S4
Where
S is some kind of data source like a web socketO is a data processing operatorT is the target or data receiver
These elements are represented by xml blocks as follows:
<source name="S1" address="ws://example/1" type="websocket" dataType="double" />
<operator name="O6" type="threshold">
<input name="S1"/>
<input name="S2"/>
<input name="S3"/>
<property name="threshold" value="10.34" />
<property name="window" value="10.0" />
</operator>
<sink name="T1" type="database">
<input name="O3"/>
</sink>
Dependencies are constructor options. My operator example O6would have a constructor like this:
class ThresholdOperator extends Operator<Boolean> {
public ThresholdOperator(
String name,
List<DataSource> sources,
double threshold,
double window) {
...
There may be several instances of this class with different constructor parameters. It is possible that a class has more than one constructor. The base class type parameter is the output type.
type , . dataType , ( String to Double) .
, ( ), , , ..
- Spring . Spring ? xml- beans.xml. , , BeanFactory . - Spring ?
Spring 4.3, RC Spring 5 , .