public ServiceBroker use ( Collection < Middleware > middlewares ) { if ( serviceRegistry == null ) { // Apply middlewares later this . middlewares . addAll ( middlewares ) ; } else { // Apply middlewares now serviceRegistry . use ( middlewares ) ; } return this ; }
Installs a collection of middlewares .