@HandlerInput(name="propsName", type=java.util.List.class, required=true),
@HandlerInput(name="propsValue", type=java.util.List.class, required=true)}
)
public void savePropsValue(HandlerContext handlerCtx) {
PropertiesAccess mbean = (PropertiesAccess)handlerCtx.getInputValue("mbean");
List<String> propsName = (List)handlerCtx.getInputValue("propsName");
List<String> propsValue = (List)handlerCtx.getInputValue("propsValue");
if (mbean==null){
//TODO: log error
return;
}
Map<String, String> mbeanProps = mbean.getProperties();
for(int i=0; i<propsName.size(); i++){
String newValue = propsValue.get(i);
String nm = propsName.get(i);
AMXUtil.changeProperty(mbean, nm, newValue);
}