jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tobias Bocanegra <tri...@apache.org>
Subject Re: Make "Whiteboard" accessible through ContentRepository
Date Tue, 11 Feb 2014 01:35:18 GMT

On Mon, Feb 10, 2014 at 2:55 PM, Jukka Zitting <jukka.zitting@gmail.com> wrote:
> On Mon, Feb 10, 2014 at 5:49 PM, Tobias Bocanegra <tripod@apache.org> wrote:
>> On Mon, Feb 10, 2014 at 1:30 PM, Jukka Zitting <jukka.zitting@gmail.com> wrote:
>>> On Mon, Feb 10, 2014 at 2:50 PM, Tobias Bocanegra <tripod@apache.org> wrote:
>>>> in case of the LoginModules, that's not possible.
>>> But accessing the whiteboard is? I don't see what's special about the
>>> whiteboard, it's just a service dependency like any other.
>> No, it's a piece of infrastructure, and part of the Oak SPI. I think
>> that components should be able to rely on a system wide Whiteboard if
>> they want.
>> Also, the LoginModules are not 'services' in that sense. they get
>> instantiated by JAAS and can only communicate via Callbacks with the
>> login context.
> The thing I don't understand here is why you'd be able to access the
> Whiteboard instance, but not some other service. If it's "not
> possible" to access a reference to a normal service, how would it be
> possible to access a reference to the Whiteboard?

Aha! Because I make the Whiteboard available through the
SecurityProvider.getConfiguration(Whiteboard.class) as a workaround -
but I don't like this. I'd rather offer it via a Callback.

Regards, Toby

View raw message