@Override
    public void setApplicationContext(ApplicationContext appContext) throws BeansException {
        if (this.appContext != null) {
            throw new ApplicationContextException("Attempt to reinitialize application context.");
        }
        
        this.appContext = appContext;
    }
@ Override public void setApplicationContext ( ApplicationContext appContext ) throws BeansException { if ( this . appContext != null ) { throw new ApplicationContextException ( "Attempt to reinitialize application context." ) ; } this . appContext = appContext ; }
ApplicationContextAware interface to allow container to inject itself. Sets the active
application context.

@param appContext The active application context.