[Yanel-dev] data-repo-sitetree resource-type

simon litwan simon.litwan at wyona.com
Wed Feb 11 13:27:28 CET 2009


Michael Wechner schrieb:
> simon litwan schrieb:
>>>
>>>> but how to get the different sitetrees? where are the sitetree 
>>>> configured? within the rc?
>>>
>>> see above. Also as said before let's document what we currently 
>>> have, whereas I am happy to help.
>> i think i found a simple way to improve the implementation to reach 
>> my goal.
>> i implemented within th data-repo-sitetree resource-type a way to 
>> configure the sitetree within the resource-configuration.
>
> ok
>>
>> but i stuck now because the init resolves only relative to 
>> realmConfigFile. as defined in the interface 
>> org.wyona.yanel.core.navigation.Sitetree the method public void 
>> init(Document document, RealmConfigPathResolver resolver); only 
>> allows RealmConfigPathResolver.
>> wouldn't it make sense to allow javax.xml.transform.URIResolver as 
>> resolver?
>
> what for?
to be able to pass the ResourceResolver not only the 
RealmConfigPathResolver.
when config the sitree within a rc the ResourceResolver makes more sense.

BTW the exaple config of SitetreeDOMImpl.java in the java docs:
/**
 * Based on DOM, whereas persistance is done through the src 
configuration, e.g.
 * <repo-navigation class="org.wyona.yanel.impl.navigation.SitetreeDOMImpl">
 *   <src>yanelrepo:/sitetree.xml</src>
 * </repo-navigation>
 */
is not working because RealmConfigPathResolver is not able to resolve 
yanelrepo:

hope this explains it better.

simon
>>
>> or is there a better way to use all the protocols which 
>> ResourceResolver resolves.
>
> hm? Can you explain a bit?
>
> Cheers
>
> Michael
>>
>> simon
>>>
>>> Cheers
>>>
>>> Michi
>>>>
>>>> simon
>>>>>
>>>>> Cheers
>>>>>
>>>>> Michael
>>>>>>
>>>>>> WDOT?
>>>>>>
>>>>>> simon
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>



More information about the Yanel-development mailing list