public synchronized void shutdown ( ) { checkIsRunning ( ) ; try { beanManager ( ) . fireEvent ( new ContainerBeforeShutdown ( id ) , BeforeDestroyed . Literal . APPLICATION ) ; } finally { discard ( id ) ; // Destroy all the dependent beans correctly creationalContext . release ( ) ; beanManager ( ) . fireEvent ( new ContainerShutdown ( id ) , Destroyed . Literal . APPLICATION ) ; bootstrap . shutdown ( ) ; WeldSELogger . LOG . weldContainerShutdown ( id ) ; } }
Shutdown the container .