You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Lon Varscsak <lo...@gmail.com> on 2016/05/19 17:51:24 UTC

Last object in key path

Hey guys,

I’m trying to do something where right before setting a value, I want to
lookup and call a validation routine.  I was looking for a method where I
could get the target object for a given property, but I can’t seem to find
one that’s exposed.

So for a key path of “key1.key2.key3” when setting a value, I’d like to try
to lookup a method on the object represented by “key2” and call that first,
and then conditionally call the set.  Any ideas?

Thanks,

Lon

RE: Last object in key path

Posted by Martin Gainty <mg...@hotmail.com>.
                                                                                               


> Date: Thu, 19 May 2016 10:51:24 -0700
> Subject: Last object in key path
> From: lon.varscsak@gmail.com
> To: user@commons.apache.org
> 
> Hey guys,
> 
> I’m trying to do something where right before setting a value, I want to
> lookup and call a validation routine.  I was looking for a method where I
> could get the target object for a given property, but I can’t seem to find
> one that’s exposed.
> 
> So for a key path of “key1.key2.key3” when setting a value, I’d like to try
> to lookup a method on the object represented by “key2” and call that first,
> and then conditionally call the set.  Any ideas?
MG>1)setup a Asynchronous Callback so when a known condition is met the Callback is invoked ...OR...
MG>2)implement An Eventing Framework like Felix for OSGI
> 
> Thanks,
> 
> Lon