jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jukka Zitting <jukka.zitt...@gmail.com>
Subject Re: Jackrabbit management API
Date Tue, 08 Sep 2009 13:15:06 GMT

On Tue, Sep 8, 2009 at 2:06 PM, Thomas Müller<thomas.mueller@day.com> wrote:
> How would you instantiate the RepositoryManager object on the server side?

Simply by instantiating the appropriate implementation class, for
example like this:

    RepositoryManager manager = new RepositoryManagerImpl(config);

The server is in any case implementation-specific, so using a concrete
class is no problem.

Using a decorator like a logging wrapper is trivial:

    RepositoryManager manager =
        new LoggingRepositoryManager(new RepositoryManagerImpl(config));

On Tue, Sep 8, 2009 at 3:09 PM, Alexander Klimetschek<aklimets@day.com> wrote:
> But the log wrapper would be Jackrabbit-specific then.

It obviously depends on jackrabbit-api, but so would a logging wrapper
for any of the other proposed approaches.


Jukka Zitting

View raw message