private void _publishManagedBeanDestroyerListener ( FacesContext facesContext ) { ExternalContext externalContext = facesContext . getExternalContext ( ) ; Map < String , Object > applicationMap = externalContext . getApplicationMap ( ) ; applicationMap . put ( ManagedBeanDestroyerListener . APPLICATION_MAP_KEY , _detroyerListener ) ; }
Publishes the ManagedBeanDestroyerListener instance in the application map . This allows the FacesConfigurator to access the instance and to set the correct ManagedBeanDestroyer instance on it .