public AbstractEndpointBuilder < T > applicationContext ( ApplicationContext applicationContext ) { if ( getEndpoint ( ) instanceof ApplicationContextAware ) { ( ( ApplicationContextAware ) getEndpoint ( ) ) . setApplicationContext ( applicationContext ) ; } if ( getEndpoint ( ) instanceof BeanFactoryAware ) { ( ( BeanFactoryAware ) getEndpoint ( ) ) . setBeanFactory ( applicationContext ) ; } return this ; }
Sets the Spring application context .