private void notifyLazyLoadContextMappingListeners(Host mappedHost, Context context) { synchronized (context) { if (context.replaced) return; synchronized (lazyLoadListeners) { for (OnDemandContextMappingListener listener : lazyLoadListeners) listener.onDemandContextMapped(mappedHost.name, context.name); } } }
private void notifyLazyLoadContextMappingListeners(Host mappedHost, Context context) { synchronized (context) { if (context.replaced) return; synchronized (lazyLoadListeners) { for (OnDemandContextMappingListener listener : lazyLoadListeners) listener.onDemandContextMapped(mappedHost.name, context.name); } } }