public PurgeJmsQueuesBuilder withApplicationContext(ApplicationContext applicationContext) {
        if (applicationContext.containsBean("connectionFactory")) {
            connectionFactory(applicationContext.getBean("connectionFactory", ConnectionFactory.class));
        }

        return this;
    }
public PurgeJmsQueuesBuilder withApplicationContext ( ApplicationContext applicationContext ) { if ( applicationContext . containsBean ( "connectionFactory" ) ) { connectionFactory ( applicationContext . getBean ( "connectionFactory" , ConnectionFactory . class ) ) ; } return this ; }
Sets the Spring bean factory for using endpoint names.
@param applicationContext