What do you mean by "ignition properties"?
Do you want to retrieve:
- All bean properties on the component, in a way you can loop over? Use the static methods on
BeanInfoFactory
- All custom properties on the component, not those that are part of the standard component (check if it's a
DynamicPropertyProvider
)
- Or just specific custom properties by name?
I want the properties native to the target component, as well as the custom properties a user might have added. Here is what I have so far as a test:
public void printComponent(Dataset mappings){
if (mappings != null) {
for (int i = 0; i < mappings.getRowCount(); i++) {
String tagPath = mappings.getValueAt(i, 0).toString();
String compPath = mappings.getValueAt(i, 1).toString();
logger.info("Component: {}\n Tagpath: {}", view.getComponentByPath(compPath).toString(), tagPath);
AbstractVisionComponent component = view.getComponentByPath(compPath);
component.setPropertyValue("value", 1000);
}
}
}
Ultimately I want the user to be able to pass in the component path and property name, then I dynamically set those values from the internals of the module.