jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jukka Zitting <jukka.zitt...@gmail.com>
Subject Re: I set a TransientRepository, I get a RepositoryImpl ?
Date Mon, 06 Jun 2011 12:59:51 GMT
Hi Hervé,

Rather than get into a debate about the exact semantics of
getRepository() (which is a generally troublesome method for any
repository wrappers like the TransientRepository class), how about
discussing your use case instead?

Why do you need to class-cast the return value of
Session.getRepository(). If you need access to the extra
TransientRepository methods, why not keep a direct reference around
for that?


Jukka Zitting

View raw message