[Yanel-dev] default constructor in newly created resource-type

simon litwan simon.litwan at wyona.com
Sun Feb 10 21:47:39 CET 2008


simon litwan schrieb:
> Michael Wechner schrieb:
>> simon litwan wrote:
>>
>>> Michael Wechner schrieb:
>>>
>>>> simon litwan wrote:
>>>>
>>>>> hi all
>>>>>
>>>>> maybe a thumb question. but can someone tell me why the java file 
>>>>> in a newly created resource (./build.sh new-resource-type) has an 
>>>>> empty constructor in it?
>>>>
>>>>
>>>>
>>>> What else would you expect?
>>>
>>> just an empty class.
>>
>>
>> so, I guess we can delete it from the template. Patch ;-)
>>
>>>>
>>>> A sample ViewableV2 implementation?
>>>
>>> no.
>>
>>
>> but wouldn't it make sense to add the most recent ViewableVXXXX by 
>> default, because in 99% cases one needs to have this.
>>
>> Whereas one could extends the BasicXMLResource and hence does not 
>> need to implement it itself.
> i think we should introduce a choice between empty, text, xml and 
> usecase.
> will provide a patch.
here is the patch:
http://bugzilla.wyona.com/cgi-bin/bugzilla/show_bug.cgi?id=5959

adds choice for example, emtpy, xml, usecase
adds choice for implement interfaces
fixes project-name of dependencies.
generate the path from package and class name (saves one user input)

cheers
simon


>
> simon
>>
>> WDYT?
>>
>> Cheers
>>
>> Michi
>>
>>>
>>> simon
>>>
>>>>
>>>> Cheers
>>>>
>>>> Michi
>>>>
>>>>>
>>>>> simon
>>>>> _______________________________________________
>>>>> Yanel-development mailing list
>>>>> Yanel-development at wyona.com
>>>>> http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development
>>>>
>>>>
>>>>
>>>>
>>>
>>> _______________________________________________
>>> Yanel-development mailing list
>>> Yanel-development at wyona.com
>>> http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development
>>
>>
>>
>
> _______________________________________________
> Yanel-development mailing list
> Yanel-development at wyona.com
> http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development



More information about the Yanel-development mailing list