Timeline for Set data in multi-level objects (may be using Java Reflection)
Current License: CC BY-SA 3.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 27, 2016 at 16:25 | comment | added | matt freake | Why do you want to do this? Do you have a concrete requirement, or is it just for intellectual curiosity? | |
Apr 27, 2016 at 13:45 | answer | added | Software Engineer | timeline score: 1 | |
Apr 27, 2016 at 13:40 | comment | added | Brian Agnew | @Laiv - see my answer and the suggestion to use JXPath (I wouldn't normally recommend this, note) | |
Apr 27, 2016 at 13:30 | answer | added | Brian Agnew | timeline score: 2 | |
Apr 27, 2016 at 12:26 | comment | added | Laiv | Does not Apache CommonBeans and/or Common Lang do this sort of tasks? Is there any restriction that doesn't allow to you to add 3th party libs? | |
Apr 27, 2016 at 12:16 | comment | added | Ixrec | @vnkotak By providing protected methods that subclasses are expected to override...? If you're saying someone has forbidden you from using something sane like protected methods, unfortunately that's not really a problem we can help with. | |
Apr 27, 2016 at 11:59 | comment | added | vnkotak | @Ixrec.. I understand your points, but am not getting any other solution.. Exact requirement is that I will be getting some task to be done and corresponding value.. Now every task can be at different level in the hierarchy of the class... So I am not how else should I implement this. :( | |
Apr 27, 2016 at 11:56 | comment | added | vnkotak | @KilianFoth.. I just thought that's the solution for kind of problem.. Am open for any other solution if you can suggest.. | |
Apr 27, 2016 at 11:55 | comment | added | Ixrec | Surely "getting subclass information" should be done through methods the subclasses override? Or else you're wildly violating LSP and missing the whole point of a class hierarchy? | |
Apr 27, 2016 at 11:51 | comment | added | Kilian Foth | I want to use Reflection to keep it generic functionality for future flexibility. That is a very bad reason for using reflection. You will end up happier if you achieve that goal by other means. | |
Apr 27, 2016 at 11:34 | review | First posts | |||
Apr 28, 2016 at 21:57 | |||||
Apr 27, 2016 at 11:31 | history | asked | vnkotak | CC BY-SA 3.0 |