InvalidationInterceptor invInterceptor = getFirstInterceptorWhichExtends(interceptors, InvalidationInterceptor.class);
result.set(invInterceptor != null ? invInterceptor.getInvalidations() : 0);
break;
}
case PASSIVATIONS: {
PassivationManager manager = registry.getComponent(PassivationManager.class);
result.set(manager != null ? manager.getPassivations() : 0);
break;
}
case ACTIVATIONS: {
ActivationManager manager = registry.getComponent(ActivationManager.class);
result.set(manager != null ? manager.getActivationCount() : 0);
break;
}
case CACHE_LOADER_LOADS: {
ActivationInterceptor interceptor = getFirstInterceptorWhichExtends(interceptors, ActivationInterceptor.class);
result.set(interceptor != null ? interceptor.getCacheLoaderLoads() : 0);