Athi / athifx

Apache License 2.0
2 stars 1 forks source link

Invalid message when no configuration implementation #8

Closed marcinMarcin closed 4 years ago

marcinMarcin commented 4 years ago
  if (configuration.size() == 1) {
                configuration.iterator().next().newInstance().init();
            } else if (configuration.isEmpty()) {
//it should be no implementation
                throw new ApplicationConfigurationException("To many application configuration implementations!!");
            } else {
//it should be to many implementation
                throw new ApplicationConfigurationException("No application configuration implementations!!");
            }