yeison / snakeyaml

Automatically exported from code.google.com/p/snakeyaml
Apache License 2.0
0 stars 0 forks source link

Need Intercept Constructor and supply object instance #94

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
See Attached Test File

References from google thread:

http://groups.google.com/group/snakeyaml-core/browse_thread/thread/322aeabfe9679
6f0

Original issue reported on code.google.com by medhat0....@gmail.com on 5 Nov 2010 at 1:04

Attachments:

GoogleCodeExporter commented 9 years ago
You can see an example here: 
http://code.google.com/p/snakeyaml/source/browse/src/test/java/org/yaml/snakeyam
l/issues/issue94/ChangeRuntimeClassTest.java

I hope it meets your expectations.

May I also ask you a favor ? I am going to start 'how-to' wiki pages with 
descriptions of some solutions. I do not want to put it to tutorial since the 
tasks may not be common enough.
Can you may be try to describe your task/problem in a way it may be useful for 
others ? Of course users may search the mailing list but it is not always easy 
to look through a big thread.

General question: where can the documentation be improved ?

Original comment by py4fun@gmail.com on 5 Nov 2010 at 11:35

GoogleCodeExporter commented 9 years ago
I am sorry I did not check here for a long time. I kept checking on the good 
group. Off course I will be glad to. Let me read the example and understand it 
and then if it is parallel to my problem, I will certainly contribute the 
example back. I put this issue on the back burner for weeks and it dawned on me 
to check to today. So I will probably return to it within a week or two. Thanks 
for your pointer.

Original comment by mms7...@gmail.com on 20 Nov 2010 at 11:00

GoogleCodeExporter commented 9 years ago
thank you very much, I looked at the example forwarded and it only allows me to 
return the class of the object not to construct the object myself (my code). 
Why is this useful? Well, simply in the case where I want to use cglib to 
essentially create an object on the fly that extends the loaded class and 
override selective setX() methods and pass the rest to the super class (the 
real target class). I am not sure if this is possible in SnakeYaml framework or 
this will break the framework core flow or assumptions to allow such as thing...

Original comment by mms7...@gmail.com on 24 Nov 2010 at 11:49

GoogleCodeExporter commented 9 years ago
I am sorry but I did not quite catch you. Can you please provide a test ? Then 
we can clearly see what you try to do and what you wish to achieve.

Original comment by py4fun@gmail.com on 29 Nov 2010 at 8:47

GoogleCodeExporter commented 9 years ago
Since the reporter does not contribute any information (for half of a year) the 
issue will be closed.

Original comment by py4fun@gmail.com on 24 May 2011 at 8:42