Re: [Simple-support] Beginner Question
Brought to you by:
niallg
|
From: Timo R. <cr...@ol...> - 2008-06-10 21:59:35
|
Hello Graham, > But if I omit the class attribute then this: > TaskInterface o = serializer.read(TaskInterface.class, "<task1 > a=\"14\" b=\"13\"/>>"); > will fail with you want to get a TaskInterface, which is apparently an interface, returned by the serializer. This is possible only if the serializer knows what implementation to instantiate. If you have no "class" parameter in the XML, how can the serializer know which class to instantiate (you can't instantiate an interface)? Regards, Timo |