On 10/31/16 1:54 AM, Stian Thorgersen wrote:
I'm not sure I see how this would be used. Does it not mean that
all
components need to know if they are used within the realm themselves?
They need to load/init everything when the realm is loaded rather than
if/when they are used? Also, don't see why this has to happen when the
realm is cached as we use a invalidation cache this data can be added
anytime.
True enough. I can remove the event then.
For key providers I needed a similar functionality so just added a
map
with notes to the ComponentModel. I think that's simpler to use, see:
https://github.com/keycloak/keycloak/blob/master/services/src/main/java/o...
Works, but in this case you don't know if you're working with a cached
model or not.