Package org.mokai

Examples of org.mokai.ObjectNotFoundException


      // check if the handler supports the message
      if (handler.supportsDirection(direction)) {
        boolean found = handler.updateMessage(conn, message);
        if (!found) {
          throw new ObjectNotFoundException("message with id " + message.getId() + " not found");
        }
      } else {
        throw new RejectedException("this message store doesn't supports direction '" + direction + "'");
      }
    } catch (SQLException e) {
View Full Code Here


  private void removeAndDestroyConnector(String id, Map<String,ConnectorService> map, String mapName) {
    Validate.notEmpty(id);

    ConnectorService cs = map.remove(id);
    if (cs == null) {
      throw new ObjectNotFoundException("Connector with id " + id + " doesnt exists in map of " + mapName);
    }

    // call the destroy method on the processor or receiver service
    cs.destroy();
  }
View Full Code Here

    Validate.notNull(acceptor);

    boolean removed = acceptors.remove(acceptor);
    if (!removed) {
      throw new ObjectNotFoundException("Acceptor " + acceptor + " not found");
    }

    // destroy if it implements Configurable
    LifecycleMethodsHelper.destroy(acceptor);
View Full Code Here

    Validate.notNull(action);

    boolean removed = preProcessingActions.remove(action);
    if (!removed) {
      throw new ObjectNotFoundException("Action " + action + " not found");
    }

    // destroy if it implements Configurable
    LifecycleMethodsHelper.destroy(action);
View Full Code Here

    Validate.notNull(action);

    boolean removed = postProcessingActions.remove(action);
    if (!removed) {
      throw new ObjectNotFoundException("Action " + action + " not found");
    }

    // destroy if it implements Configurable
    LifecycleMethodsHelper.destroy(action);
View Full Code Here

    Validate.notNull(action);

    boolean remove = postReceivingActions.remove(action);
    if (!remove) {
      throw new ObjectNotFoundException("Action " + action + " not found");
    }

    // destroy if it implements Configurable
    LifecycleMethodsHelper.destroy(action);
View Full Code Here

TOP

Related Classes of org.mokai.ObjectNotFoundException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.