Exemplo n.º 1
0
  @Override
  public Class<?> getReciverDataInterface(String servicoBW) {
    if (ServicoBwEnum.bw1155.getServicoBW().equals(servicoBW))
      return senderTask1155.getReciverDataInterface();

    if (ServicoBwEnum.bw1185.getServicoBW().equals(servicoBW))
      return senderTask1185.getReciverDataInterface();

    if (ServicoBwEnum.bw1186.getServicoBW().equals(servicoBW))
      return senderTask1186.getReciverDataInterface();

    if (ServicoBwEnum.bw1187.getServicoBW().equals(servicoBW))
      return senderTask1187.getReciverDataInterface();

    if (ServicoBwEnum.bw1188.getServicoBW().equals(servicoBW))
      return senderTask1188.getReciverDataInterface();

    if (ServicoBwEnum.bw1189.getServicoBW().equals(servicoBW))
      return senderTask1189.getReciverDataInterface();

    if (ServicoBwEnum.bw1191.getServicoBW().equals(servicoBW))
      return senderTask1191.getReciverDataInterface();

    throw new NoReciverTaskFoundException();
  }