jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tobias Bocanegra" <tobias.bocane...@day.com>
Subject Re: Backupping all workspaces automatically?
Date Sat, 15 Jul 2006 19:02:51 GMT
if the backup class is intantiated by the config it can define it's
one parameters as it needs. have a look how the persistence managers
are created as example.

regards, toby

On 7/15/06, Nicolas <ntoper@gmail.com> wrote:
> Hi,
>
> I am finishing to parse the configuration XML file for the backup tool.
> Right now, things are organized this way:
>
> ...XML before
> <Ressources>
>
>     <Resource name="node version histories" savingClass="FQN backup class"/>
>     <Resource name="namespace" savingClass="FQN backup class"/>
>
> ...XML after
>
> As you can see, each resource you want to backup have to be specified as a
> resource and you need to call the specific backup class. For now, there is
> no need to add any additional parameters in the file if we automatically
> backup all workspace (the wisest solution I think)
>
> For instance you could want:
>
> <Resource name="custom node type" savingClass="FQN backup class">
>        <!-- the resource class is fetching those parameters if needed.
> For now, only one needs it -->
>        <param name="param1" value="1" />
>     </Resource>
>
> If I do so, it complexifies, the BackupConfigurationParser and it is not
> needed for now if we automatically backup all workspaces. I propose so, to
> implement only a resource tag with no parameter except savingClass.
>
> Do you agree? Do you see any use case where this could be needed please?
>
> Thanks
> Nico
> my blog! http://www.deviant-abstraction.net !!
>
>


-- 
-----------------------------------------< tobias.bocanegra@day.com >---
Tobias Bocanegra, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel
T +41 61 226 98 98, F +41 61 226 98 97
-----------------------------------------------< http://www.day.com >---

Mime
View raw message