Examples of DuplicateRegistrationException


Examples of com.github.wolfie.blackboard.exception.DuplicateRegistrationException

      final Class<? extends Event> event) {
    for (final Registration registration : registrationsByEvent.values()) {
      final Class<? extends Event> existingEvent = registration.getEvent();

      if (existingEvent.equals(event)) {
        throw new DuplicateRegistrationException(listener, event,
            registration.getListener(), existingEvent);
      }
    }
  }
View Full Code Here

Examples of org.gatein.registration.DuplicateRegistrationException

      ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(consumerId, "Consumer identity", null);
      ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(consumerName, "Consumer name", null);

      if (isConsumerExisting(consumerId))
      {
         throw new DuplicateRegistrationException("A Consumer with identifier '" + consumerId + "' has already been registered.");
      }
      else
      {
         ConsumerSPI consumer = internalCreateConsumer(consumerId, consumerName);
         internalAddConsumer(consumer);
View Full Code Here

Examples of org.gatein.registration.DuplicateRegistrationException

   {
      ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(name, "ConsumerGroup name", null);

      if (isConsumerGroupExisting(name))
      {
         throw new DuplicateRegistrationException("A ConsumerGroup named '" + name + "' has already been registered.");
      }
      else
      {
         final ConsumerGroupSPI group = internalCreateConsumerGroup(name);
         internalAddConsumerGroup(group);
View Full Code Here

Examples of org.gatein.registration.DuplicateRegistrationException

         // for this consumer...
         for (Registration registration : consumer.getRegistrations())
         {
            if (registration.hasEqualProperties(registrationProperties))
            {
               throw new DuplicateRegistrationException("Consumer named '" + consumer.getName()
                  + "' has already been registered with the same set of registration properties. Registration rejected!", null, registration);
            }
         }
      }
   }
View Full Code Here

Examples of org.gatein.registration.DuplicateRegistrationException

   /** Rejects registration if a Consumer with the specified name already exists. */
   public void validateConsumerName(String consumerName, final RegistrationManager manager) throws IllegalArgumentException, RegistrationException
   {
      if (manager.isConsumerExisting(getConsumerIdFrom(consumerName, Collections.<QName, Object>emptyMap())))
      {
         throw new DuplicateRegistrationException("A Consumer named '" + consumerName + "' has already been registered.");
      }
   }
View Full Code Here

Examples of org.gatein.registration.DuplicateRegistrationException

         // for this consumer...
         for (Registration registration : consumer.getRegistrations())
         {
            if (registration.hasEqualProperties(registrationProperties))
            {
               throw new DuplicateRegistrationException("Consumer named '" + consumer.getName()
                  + "' has already been registered with the same set of registration properties. Registration rejected!", null, registration);
            }
         }
      }
   }
View Full Code Here

Examples of org.gatein.registration.DuplicateRegistrationException

   /** Rejects registration if a Consumer with the specified name already exists. */
   public void validateConsumerName(String consumerName, final RegistrationManager manager) throws IllegalArgumentException, RegistrationException
   {
      if (manager.isConsumerExisting(getConsumerIdFrom(consumerName, Collections.<QName, Object>emptyMap())))
      {
         throw new DuplicateRegistrationException("A Consumer named '" + consumerName + "' has already been registered.");
      }
   }
View Full Code Here

Examples of org.snmp4j.agent.DuplicateRegistrationException

      agentXMIB.registerMOs(agent.getServer(context), context);
    }
    catch (DuplicateRegistrationException ex) {
      String txt = "Unable to register AgentX MIB";
      LOGGER.error(txt, ex);
      throw new DuplicateRegistrationException(txt);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.