public class ReflectionCallback extends Object implements UaVariableCallback
| Modifier and Type | Field and Description |
|---|---|
static boolean |
LAZY_INIT
A global flag which determines whether the reflective property getters and setters are
initialized only upon first use.
|
| Constructor and Description |
|---|
ReflectionCallback(Object object,
String propertyName) |
public static boolean LAZY_INIT
The option is not set by default, to give more emphasis on earlier error checking. set it on, once you have checked your application and you know that all properties are OK, and you can safely give it a small performance boost by limiting the initialization to those properties that are actually used.
public ReflectionCallback(Object object, String propertyName) throws SecurityException, NoSuchMethodException
object - propertyName - NoSuchMethodExceptionSecurityExceptionpublic Object getValue() throws StatusException
getValue in interface UaVariableCallbackStatusException - if the value is not available. Set the StatusCode to what should be
provided.public boolean setValue(Object newValue) throws StatusException
setValue in interface UaVariableCallbacknewValue - the new value to set for the variable.StatusException - if the value cannot or may not be writtenCopyright © 2026. All rights reserved.