jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Mueller" <thomas.tom.muel...@gmail.com>
Subject Re: remove JackrabbitRepository.shutdown()
Date Tue, 15 Apr 2008 07:48:34 GMT

>  that is not true. a workspace has the same authorization scope as the
>  session and is retrieved via the session.

Yes, technically it may have the same authorization scope. However
this is not obvious to an end user. Anyway, having to call a method on
Workspace to close the repository seems strange.

>  the correct location for the shutdown method would be on the
>  repository, so passing the session could be another option:
>  Repository.shutdown(Session s);

Looks good, +1

>  or on some management object,
>   RepositoryManagement Session.getRepositoryManagement()
>   RepositoryManagement.shutdown()
>  this object could also be used for other 'admin' stuff, like nodetype
>  registration.

If there are more such methods then that's good as well.


View raw message