static void endInitialization(WeldContainer container, boolean isShutdownHookEnabled) {
        container.complete();
        // If needed, register one shutdown hook for all containers
        if (shutdownHook == null && isShutdownHookEnabled) {
            synchronized (LOCK) {
                if (shutdownHook == null) {
                    shutdownHook = new ShutdownHook();
                    SecurityActions.addShutdownHook(shutdownHook);
                }
            }
        }
        container.fireContainerInitializedEvent();
    }
static void endInitialization ( WeldContainer container , boolean isShutdownHookEnabled ) { container . complete ( ) ; if ( shutdownHook == null && isShutdownHookEnabled ) { synchronized ( LOCK ) { if ( shutdownHook == null ) { shutdownHook = new ShutdownHook ( ) ; SecurityActions . addShutdownHook ( shutdownHook ) ; } } } container . fireContainerInitializedEvent ( ) ; }
Finish the initialization.

@param container
@param isShutdownHookEnabled