Hi all,
I’m using plc4j in Android, commons-beanutils is the only thing to obstacle me
to do that ,because Android does not have java.beans.PropertyDescriptor.
org.apache.commons.beanutils.BeanUtils is used only in
org.apache.plc4x.java.spi.configuration.ConfigurationFactory (Line 93 and Line
103). I think It could be replace by simple reflect:
field.setAccessible(true);
if (field.getType() == String.class) {
field.set(instance, valueString);
} else if ((field.getType() == boolean.class) || (field.getType() ==
Boolean.class)) {
field.setBoolean(instance, Boolean.parseBoolean(valueString));
} else if …
Any help?
Yang Lin