Example #1
0
  public void replace(Destination destination) {
    Destination oldDestination = _destinations.get(destination.getName());

    oldDestination.copyDestinationEventListeners(destination);
    oldDestination.copyMessageListeners(destination);

    removeDestination(oldDestination.getName());

    addDestination(destination);
  }
Example #2
0
  protected void fireMessageListenerUnregisteredEvent(
      Destination destination, MessageListener messageListener) {

    for (DestinationEventListener destinationEventListener : _destinationEventListeners) {

      destinationEventListener.messageListenerUnregistered(destination.getName(), messageListener);
    }
  }
 public void checkRuleAud() {
   if (ruleAud == null) throw REQUEST_MISSING_VALUE.exception("rule");
   if (!ruleAud.getAllowed())
     throw REQUEST_NOT_ALLOWED.exception(goods.getName(), arrival.getName());
 }
Example #4
0
  public synchronized void addDestination(Destination destination) {
    _destinations.put(destination.getName(), destination);

    fireDestinationAddedEvent(destination);
  }