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.
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...
On 28 October 2016 at 22:50, Bill Burke <bburke(a)redhat.com> wrote:
There is a new callback event
CachedRealmModel.RealmCachedEvent
Whenever a realm is cached, this event is fired off. Each cached
RealmModel instance will can be typecasted to CachedRealmModel which
will allow developers to cache additional things along with the realm.
This will be very useful for providers that want to do some
initialization to speed up processing.
_______________________________________________
keycloak-dev mailing list
keycloak-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-dev