|Implementing multiple Services on the same Property? [message #1033044]
||Wed, 03 April 2013 19:54
| Ellen Badgley
Registered: October 2012
Is this possible? |
Briefly, I have a property that references the "ID" string of another element elsewhere in the model, like so:
@XmlBinding(path = "")
@Label(standard = "Fusion Input")
ValueProperty PROP_INPUT = new ValueProperty(TYPE, "input");
void setInput(String id);
The catch is that PROP_INPUT can reference an element located in one of two separate locations elsewhere in the model (a list of Sensors, and a list of FusionNodes, both of which extend the Fusible class). The ReferenceService implementation takes care of resolving references given that IDs are unique within the model.
However, I'd also like to provide the user with a list of possible values to pick from, representing the combined IDs of all sensors/fusion nodes...and @PossibleValues doesn't do the trick, because there are multiple paths within the model that need to be examined. However, when I attempt to add another @Service annotation to specify my implementation of PossibleValuesService, I get an error. Hence my question: is it possible to do both things at the same time, and if not, is there an alternate approach?
Powered by FUDForum
. Page generated in 0.02668 seconds