spring - Get module label from module definition -


is there way label (if any) in spring xd custom module?

so, if define stream time | label:my-module | log

could grab string label somewhere in code, can done module type, or name via:

@value("${xd.module.name}") private string name; @value("${xd.module.type}") private string value; //??? there xd property (not in documentation @ least) private string label; 

solved issue, although not documented @ looks variable xd.module.label exposed out of box.

i checked out code see real amount of variables (more reliable documentation unfortunately) here.


Comments