Ejemplo n.º 1
0
 /**
  * Gets a connector by its id.
  *
  * @param connectorId The connector id to look for
  * @return The connector with the given id or null if no connector has the given id
  */
 public ClientConnector getConnector(String connectorId) {
   ClientConnector connector = connectorIdToConnector.get(connectorId);
   // Ignore connectors that have been unregistered but not yet cleaned up
   if (unregisteredConnectors.contains(connector)) {
     return null;
   } else if (connector != null) {
     return connector;
   } else {
     DragAndDropService service = uI.getSession().getDragAndDropService();
     if (connectorId.equals(service.getConnectorId())) {
       return service;
     }
   }
   return null;
 }