ConfD User Community



While going through Confd I came across the below functionality in C which will instruct Confd to expect all the response back in String instead of the respective Object type. I.e a leaf node set as Int32 can be returned to confd as string from the Callback API.

CONFD_DAEMON_FLAGS_STRINGSONLY flag via confd_set_daemon_flags().

How can I implement the same in my JAVA Callback code.
I am not finding the reference to sample usage in JAVA Callabck API.

Appreciate your support in it.


Usually you set flags by annotating callback method with @DpFlags annotation, but it only supports LEAF_LIST_AS_LEAF and NO_DEFAULTS.

In Java any object can be easily converted to string ans it has toString() method. Would it be sufficient for you?