[Yanel-dev] resource-creator and creation of resource-configuration

Michael Wechner michael.wechner at wyona.com
Sun Jan 10 22:57:32 CET 2010


simon wrote:
> Michael Wechner schrieb:
>> [...]
>>>
>>>>>
>>>>> an other solution would be to delegate the creation of the 
>>>>> resource-configuration to the resource. e.g. within CreatableV2 
>>>>> introduce a methode createRC(HttpServletRequest request).
>>>>
>>>> that would probably be the most elegant. I think the CreatableV2 is 
>>>> not released yet
>>> after thinking some more time i really would prefer a methode 
>>> createRC(HttpServletRequest request).
>>
>> On second thought I do not think the resource itself should be 
>> responsible for creating the resource config node, but
>> rather the realm or the resource creator (adapter). Even the resource 
>> config data/content probably shouldn't be created by
>> the resource type itself, because this can be dependent on the realm 
>> or the resource creator.
> this i don't understand. could you provide an example?

for example realm A could have a different XSLT than realm B, but uses 
the same resource type.

Cheers

Michi


More information about the Yanel-development mailing list