Esempio n. 1
0
  public void executePipeline() {
    try {
      ServiceInfo info = locateServiceInfoFromParser();
      IService<?, ?> service = info.getService();

      Object requestObject = parser.getServiceRequest(info.getRequestClass());
      Object responseObject = executePipeline(service, requestObject);
      parser.writeResponse(responseObject);

    } catch (Throwable e) {
      parser.writeErrorResponse(e);
    }
  }
Esempio n. 2
0
 private ServiceInfo locateServiceInfoFromParser() {
   ServiceDescriptor descriptor = parser.getServiceDescriptor();
   IServiceLocator locator = new ServiceLocator();
   return locator.getServiceInfo(descriptor);
 }