code: public void registerDeployer(CamelEndpointDeployerService deploymentService) {
          synchronized (scheduledHandlers) {
              /* Deploy the endpoints scheduled so far */
              for (Iterator<Entry<URI, Object>> it = scheduledHandlers.entrySet().iterator(); it
                      .hasNext();) {
                  final Entry<URI, Object> en = it.next();
                  final Object handler = en.getValue();
                  if (handler instanceof EndpointHttpHandler) {
                      deploymentService.deploy(en.getKey(), (EndpointHttpHandler) handler);
                  } else if (handler instanceof HttpHandler) {
                      deploymentService.deploy(en.getKey(), (HttpHandler) handler);
                  } else {
                      throw new IllegalStateException("Unexpected type "+ (handler == null ? "null" : handler.getClass().getName()));
                  }
                  it.remove();
              }
              this.deployerService = deploymentService;
          }
      }
docs: Sets the {@link CamelEndpointDeployerService} and deploys any endpoints scheduled for deployment so far.
  
  @param deploymentService the {@link CamelEndpointDeployerService}