Re: [Simpleweb-Support] Using Visitor: Node.getValue always returns null
Brought to you by:
niallg
From: Niall G. <gal...@ya...> - 2012-05-21 21:27:30
|
A better option for you is the @Commit and @Persist annotations, they are called after a read and write respectively, you can modify fields there also. If value returns null, then nothing has been set in the output node. --- On Mon, 21/5/12, Antanas Kaziliūnas <ant...@gm...> wrote: From: Antanas Kaziliūnas <ant...@gm...> Subject: [Simpleweb-Support] Using Visitor: Node.getValue always returns null To: sim...@li... Received: Monday, 21 May, 2012, 5:39 AM Hello everyone, I am writing a Visitor, which intercepts the serialization process - I need to scramble sensitive fields. In the method: public void write(Type type, NodeMap<OutputNode> node) node.getValue is always null. Is this normal behavior? Modifying the value without actually knowing the value makes it pretty useless. Writing a Converter was considered as an option, but it has greater impact to the code. Best, Antanas ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Simpleweb-Support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simpleweb-support |