public static ExtendedEntityManager[] getDeferredEntityManagers() {
        List<ExtendedEntityManager> store = deferToPostConstruct.get();
        try {
            if(store.isEmpty()) {
                return EMPTY;
            } else {
                return store.toArray(new ExtendedEntityManager[store.size()]);
            }
        } finally {
            store.clear();
        }
    }
public static ExtendedEntityManager[] getDeferredEntityManagers() {
        List<ExtendedEntityManager> store = deferToPostConstruct.get();
        try {
            if(store.isEmpty()) {
                return EMPTY;
            } else {
                return store.toArray(new ExtendedEntityManager[store.size()]);
            }
        } finally {
            store.clear();
        }
    }
public static ExtendedEntityManager [ ] getDeferredEntityManagers ( ) { List < ExtendedEntityManager > store = deferToPostConstruct . get ( ) ; try { if ( store . isEmpty ( ) ) { return EMPTY ; } else { return store . toArray ( new ExtendedEntityManager [ store . size ( ) ] ) ; } } finally { store . clear ( ) ; } }
Called by postconstruct interceptor
Called by postconstruct interceptor